GDL Questions
Hans Ronne
hronne@pp.sbbs.se
Sat Jun 10 02:23:00 GMT 2000
>2. I can't seem to get my units to change type. I defined the unit-types
>and coded the acp-to-change-type table. Is there something more that I
>need to do?
>3. I can't seem to get my units to produce a material. I defined the
>material-type, coded the acp-to-produce table, and material-per-production
>table. Is there something more that I need to do?
Hard to tell without seeing your code. One common mistake is to set
acp-to-do-something to zero, which (illogically) prevents the action
instead of making it happen at no cost. Writing a new game from scratch is
hard. There are lots of variables that must be set correctly. It's much
easier to start with a game that resembles what you want to write and then
hack away.
If you email me your code I could have a look at it. You could also set
breakpoints in check_change_type_action and check_produce_action in order
to see why these actions are rejected.
Hans
Hans Ronne
hronne@pp.sbbs.se
More information about the Xconq7
mailing list