Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

research question probably about GameStartPacket #143

Open
StarryWisdom opened this issue Mar 29, 2018 · 5 comments
Open

research question probably about GameStartPacket #143

StarryWisdom opened this issue Mar 29, 2018 · 5 comments

Comments

@StarryWisdom
Copy link
Collaborator

following odd behavior happens and probably wants explaining
start border war (acts as normal, blue band in middle)
start gm mission (blue band still in middle of screen)

different option
start border war
start siege (no blue border)
start gm mission (blue band still in middle)

this might be the server sending the wrong data or relying on cached information, logically the blue band is controlled via the GameStartPacket which implies its the first place to look

@StarryWisdom
Copy link
Collaborator Author

it seems the stock server will say the mission type is whatever is selected on the standard mission screen when starting a gm mission - sending a GameStartPacket with type=border war will display the blue bar that border war has, sending a GameStartPacket with a different value will remove it

presumably "the field is present but its value is undefined for PvP and scripted games." wants some nice words to say scripted games in the stock server use the value set in the co-op/single player screens (unsure about pvp) and somewhere either there or in game type a comment about border wars having the blue border

@NoseyNick
Copy link
Collaborator

Related question: In Border War games, what packet signifies "Border is down"? Is it just
commText(1,UTF16("TSNCOM"),UTF16("ALERT! War has been declared! [...]"));
... or is there some other sort of "drop the border!" packet, or changes to ObjNPCShips to say "right! Now we attack!"?

@rjwut
Copy link
Member

rjwut commented Apr 10, 2018

Other than the COMM message and the fact that the enemy starts attacking, is there any indication in the client that it has happened? I don't think the server really needs to tell the client that it's down; I believe it's all handled server-side.

@StarryWisdom
Copy link
Collaborator Author

(would need to check)
ObjNPC's are spawned at the start of war - I am guessing all the preexisting NPC ships dont attack pre that - I'm guessing the orignally spawned brainstacks keep them near bases (thus there isnt any signal)

@NoseyNick
Copy link
Collaborator

Certainly COULD all be server-side. 'K.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants