Home World Forum
Stars! AutoHost web forums

Jump to Stars! AutoHost


 
 
Home » Stars! Clones, Extensions, Modding » Stars! Nova - Development » Need to move away from using names as IDs
icon4.gif  Need to move away from using names as IDs Fri, 24 June 2011 20:40 Go to previous message
FurFuznel is currently offline FurFuznel

 
Lt. Junior Grade
Stars! Nova developer
Stars! Nova developer

Messages: 437
Registered: November 2002
Location: New Brunswick, Canada
Good day to all of you!

While working on the ProductionQueue dialogue I ran into bug 3030319 again. This bug is caused by the use of race "Names" and design "Names" as ID codes. As we are going through some major overhauls of the code right now I wanted to bring this up in case anyone has an easy solution to the problem.

I had thought about the possibility of assigning player numbers when the game is first generated and then using those in place of the race "Name" as that would be a unique value. I am not sure if this could be exploitable by players though if they hack their turn orders files.

For designs, it might make more sense to have a simple counter that keeps track of the number of designs created by that player (or Empire as we refer to them now - which I really like). Then the design number could be used to refer to the designs (designIDs). I am not sure how the server could check for valid designIDs though as they would be generated by the player and submitted as part of their orders.

Just some things for people to consider as they go about making huge changes to the code.

I checked in Stars! and I can have two Starbase designs that are both named: "Amazing Starbase". Both designs show up in the queue, and if I build one the other is still available in the queue. Right now in Stars! Nova if I name two Starbase designs with the same name only the second one exists in the Design Manager and only one shows up in the Available Designs list in the production queue.



Shadallark <==> FurFuznel
Mental anguish is for those who choose to think - FurFuznel
running Mac OS X 10.6.7

Report message to a moderator

 
Read Message icon4.gif
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 icon14.gif
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: Turn year
Next Topic: Orders overwriting Star Data
Goto Forum:
  


Current Time: Fri Apr 19 12:00:57 EDT 2024