Outpost Universe Forums
Projects & Development => Outpost 2 Programming & Development => Topic started by: Sirbomber on December 03, 2005, 10:47:38 AM
-
I tried putting in structure kits in factories, but it either crashed the game or didn't make any bases. Could somebody give me a hand here? Thanks.
-
If you start a structure factory with structure kits, I don't think the AI will use them for it's building groups. I think it will only build buildings that it also produces the kits for.
Also, to set the kit in the factory without crashing the game, you need to use SetFactoryCargo on the unit. Trying to set the cargo the same way a convec's cargo is set, or the way a weapon turret is specified won't work.
-
I'm not trying to set an ai with structure kits, and I am using SetFactoryCargo... It just doesn't work very well for me...
I did get it working, but I was the only one who had a base.
-
if you're using the hooville source, you may have accidentally changed the looping code. It should loop through all player's bases.
-
I changed the structure kit givy stuff and the bases worked fine, but no kits. A changed it around again and now OP2 crashes... <_<
-
well you must've done something wrong...
-
Really, you think? I'll accept that for my first attempt at it. ( the no-bases problem) But I'm not sure I can screw up a copy and paste. I just took it from the mapper's LoS Code Generator.
-
ok. You have 2 sets of codes: the original (downloaded) version which works, and your version, which doesn't work; so i'd say something went wrong... maybe you forgotten to copy some part of it, or whatever... something must've been changed, somehow.
-
It might help if you pasted some of the problem code. Adding kits to structure factories was sorta an odd topic. There were a few ways to do it, some better than others, and/or some requiring more changes than others.