Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Extensions » xy modification after game has started
Re: xy modification after game has started Sun, 06 July 2014 09:07 Go to previous messageGo to previous message
raptor is currently offline raptor

 
Chief Warrant Officer 1
Creator of StarsWine
Created StarsWine

Messages: 138
Registered: June 2014
I'm open to other ideas and suggestions, but my current idea was that you could do something like the following (not real code):

1. blocklist = Decryptor.readFile("game.xy")
2. Modify a block in the blocklist
3. (eventually) Encryptor.writeFile(blocklist, "game.xy")

Or:

1. Create new types of Blocks as java objects (FileHeaderBlock, etc.), setting their properties through Java.
2. build up a block list
3. Encryptor.writeFile(blocklist, "game.xy")

The whole idea is to be able to edit the data using standard java objects, then reading/writing to a file using those objects. Internally, we could easily have other data types as members of the blocks themselves, then allow API access to them.

I don't know the best way to go about it.. I just started coding and this is what happened. Above all, I want to make the code semi-easy to follow as that will lower the barrier to entry for contributions. Smile

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NSA Helping to Decompile Stars!?
Next Topic: Utility to clean .m files
Goto Forum:
  


Current Time: Sun Apr 28 05:49:21 EDT 2024