Ok, so this is something that i've been trying to work out for a bit now, as Im trying to have a nodejs script monitor a game and pull data from it. When I connect to the port all it does is come up with garbage, I cant seem to deconstruct. Is it hashed? or in some form of custom format. I've looked at the mekwars source and megamek source, but I cant seem to locate the functions/methods that does the talking between mekwars and megamek.
Any assistance would be awesome! Thanks!
How does Megamek talk to Mekwars
Moderators: Torren, Moderators
-
- MegamekNET Moderator
- Posts: 989
- Joined: Thu Feb 14, 2008 12:49 am
- Location: Cologne, Germany
- Contact:
Re: How does Megamek talk to Mekwars
It's basically serialized Java Objects.
Re: How does Megamek talk to Mekwars
Mekwars implements the GameListener interface (I think that’s the name). This takes events generated by the Game object and does what it needs to do.
It also the main reason I haven’t figured out a way to implement an HTML mekwars client.
It also the main reason I haven’t figured out a way to implement an HTML mekwars client.
Never had much, grew up with nothing
But the music, well it was something
Been down and out, I've been on top of the world,
World that keeps on spinning on a turntable.
But the music, well it was something
Been down and out, I've been on top of the world,
World that keeps on spinning on a turntable.