Well today marked the official start of coding for GSoC. Having gotten off to a good start on Friday today was spent trying to rough out the shell ruleset. Without testing I can’t say everything works correctly, but I do have a good majority of the features “shelled out.” These are the shells I have so far:
- Objects:
- Universe, which holds all the:
- Galaxies, which hold all the:
- Star Systems, which hold one:
- Planet
- Some special properties/parameters for objects:
- Galaxies have an obpT_Integer parameter representing the bonus a galaxy gives if completely conquered.
- Planets have an obpT_Integer parameter representing the number of armies a given planet has
- Orders:
- Colonize
- Move
- Reinforce
Since I haven’t tested I am not totally sure if I’ve done the object parameters correctly. Perhaps I will do some debug/print logging to actually see what is going on with the parameters if I can’t get the server working. I will most likely need to have a lengthier chat with Tyler to see if I am on the right track.
Unfortunately for me I have run into a small error that isn’t letting me test any of this yet. As it stands I can start my server properly, but when I attempt to log into the server (with a used or new username/pass) I get a strange error back:
- The client connected to the host but could not login because the username or password was incorrect. This could be because you are connecting to the wrong server or mistyped the username or password.
Now I should say that I HAVE been able to connect to the server with the risk ruleset in the past. I’m not sure what I might have changed that is causing this problem. If anyone has any ideas or suggestions let me know (I will most likely hit up the dev mailing list for TP as well.) UPDATE: I just attempted loading the server sequentially and I received some additional info. The problem isn’t exclusive to my ruleset, nor is it exclusive to even my branch (risk.) If I start the server without a config, and type the following commands:
tpserver-cpp> game ruleset=risk
tpserver-cpp> game load
tpserver-cpp> network start
I receive the error (as well as a program crash thrown in there):
tpserver-cpp> network startBus Error
On a side note:
I also wanted to add that I more or less picked the constellations I will be using to represent traditional continents in Risk. While certain constellations match very closely the layout of their representative continents a few, namely Russia and Europe, will need to be squeezed around a bit to fit the constellation. Here is my list:
- North America - Cassiopea
- South America - Cygnus
- Europe - Cepheus
- Africa - Orion
- Russia - Scorpius
- Australia - Crux Australis (this is without a doubt the most suiting constellation and my favorite pick)
Star systems names will most likely follow from the actual stars in the constellations. For example, with Crux Australis, will contain Acrux, Becrux, Gacrux and delta Cru. (I may pick something different for delta, it is not officially named.) This week I will hopefully map out on some graph paper (or a digital equivalent) the relative positions of the star systems within their respective constellations. For now I am statically declaring all the planets in neat little lines; I am expecting (when I get the server running) for everything to look a lot like a bar graph for the time being.
Post a Comment
You must be logged in to post a comment.