Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Extensions » Player messages fully decoded
Player messages fully decoded Mon, 02 December 2019 08:16 Go to next message
raptor is currently offline raptor

 
Chief Warrant Officer 1
Creator of StarsWine
Created StarsWine

Messages: 138
Registered: June 2014
An update to the StarsAPI:

Message text sent between players can now be fully decoded. Source code found here:

https://github.com/stars-4x/starsapi/blob/master/src/main/ja va/org/starsautohost/starsapi/block/MessageBlock.java

This is the code to do the byte decoding starting at offset 10 (0-indexed). The MessageBlock itself is still missing some info, but most important attributes are there.

Edit: Updated code after refactor


[Updated on: Tue, 03 December 2019 10:57]

Report message to a moderator

Re: Player messages fully decoded Wed, 18 December 2019 17:53 Go to previous messageGo to next message
m.a@stars is currently offline m.a@stars

 
Commander

Messages: 2765
Registered: October 2004
Location: Third star to the left
Yay! Cool


So many Stars, so few Missiles!

In space no one can hear you scheme! Deal

Report message to a moderator

Re: Player messages fully decoded Wed, 18 December 2019 18:25 Go to previous message
ricks03 is currently offline ricks03

 
Officer Cadet 1st Year
Creator of TotalHost and Stars! utilities
Created TotalHost and Stars! utilities

Messages: 222
Registered: January 2012
Location: NC
There's also a utility in the TotalHost code (StarsMsg) that you can run against a .m or .x file, and it will extract the messages to text.


https://www.irelandbybicycle.com
http://totalhost.sinister.net:999
https://github.com/ricks03/TotalHost

Report message to a moderator

Previous Topic: Utility to clean .m files
Next Topic: Stars! disassembly and history of 2.6jrc4
Goto Forum:
  


Current Time: Thu Apr 18 17:55:47 EDT 2024