Forum: Stars! Extensions
|
Topic: Algorithms for Laying out Stars?
|
Algorithms for Laying out Stars? |
Thu, 21 March 2024 22:30 |
|
JeffD | | Civilian | Messages: 1
Registered: March 2024 | |
|
I am coming at this from two different angles, both with an eye towards stars clones implementing functionality.
It is easy to lay out a map using random x and y location for planets.
There are a number of tools that lay things out, UC.ZIP will lay it out according to a bitmap, and conceptually there are likely algorithms that lay out according to certain shapes like spirals.
But I am having trouble finding information on how to do this.
Does anyone have leads or source code?
Report message to a moderator
|
|
|
Topic: Public Messages
|
|
Topic: 32k / SS Pop Steal
|
32k / SS Pop Steal |
Thu, 11 November 2021 00:19 |
|
ricks03 | | | Messages: 222
Registered: January 2012 Location: NC | |
|
The 32k Merge bug (merging a fleet with a new total of > 32767 ships of the same type ) and the SS Pop Steal bug (setting a fleet waypoint of Load All Available for population) use very similar blocks. Getting one fixed meant it wasn't much work to get the other fixed as well.
Detection/fix isn't not quite integrated with TH yet (too many changes all at once, some more testing required), but the standalone script is working to identify (and fix) both. Woot!
Note: The FAQ says that the SS Pop Steal was fixed in JRC4, but I could replicate it with a Waypoint Task Transport Colonists Load All Available.
https://www.irelandbybicycle.com
http://totalhost.sinister.net:999
https://github.com/ricks03/TotalHostReport message to a moderator
|
|
|
Topic: Mineral Upload Bug
|
Mineral Upload Bug |
Mon, 08 November 2021 22:16 |
|
ricks03 | | | Messages: 222
Registered: January 2012 Location: NC | |
|
Mineral Upload
Stars! allows you to upload minerals to any fleet in orbit that does not belong to you. You can even do this if that fleet does not have a cargo hold. This causes the minerals to "disappear". People have abused this bug to deny the salvage of a battle from their enemy by uploading the minerals from the surface to the enemies warfleet/bombers.
I can now detect for and correct for this bug. Tricky, as upload orders only have fleet Ids. Fleet Ids only have design information, and design information includes the parts, but not the actual cargo capacity.
However, it's subtle, as you could be uploading minerals to an ally. My current process is:
Check to see if you're uploading minerals to a fleet that's not your own
Check the cargo capacity of the fleet.
If the cargo capacity is < the amount of minerals being uploaded, throw a public warning. I could either reset the upload to 0, or reset the upload to no more than the fleet capacity, but I'm trying to avoid rewriting block information where I don't have to (less risk of data corruption).
On the bright side, I think along the way I've gathered the pieces for detecting the Robber Baron and [freepop] Hack (since I can see the cargo capacity for a fleet).
https://www.irelandbybicycle.com
http://totalhost.sinister.net:999
https://github.com/ricks03/TotalHostReport message to a moderator
|
|
|
Topic: Modifying the universe
|
|
Topic: Graphing player resources
|
|
Topic: NSA Helping to Decompile Stars!?
|
|