Outpost Universe Forums

Projects & Development => Outpost 2 Programming & Development => Topic started by: Sirbomber on December 03, 2005, 10:47:38 AM

Title: Structure Kits In Factories
Post 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.
Title: Structure Kits In Factories
Post by: Hooman on December 03, 2005, 06:59:13 PM
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.
 
Title: Structure Kits In Factories
Post by: Sirbomber on December 04, 2005, 06:15:13 AM
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.
Title: Structure Kits In Factories
Post by: Eddy-B on December 04, 2005, 07:07:50 AM
if you're using the hooville source, you may have accidentally changed the looping code. It should loop through all player's bases.
Title: Structure Kits In Factories
Post by: Sirbomber on December 04, 2005, 07:47:12 AM
I changed the structure kit givy stuff and the bases worked fine, but no kits. A changed it around again and now OP2 crashes...  <_<  
Title: Structure Kits In Factories
Post by: Eddy-B on December 04, 2005, 01:03:19 PM
well you must've done something wrong...
Title: Structure Kits In Factories
Post by: Sirbomber on December 04, 2005, 01:40:18 PM
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.
Title: Structure Kits In Factories
Post by: Eddy-B on December 04, 2005, 04:16:35 PM
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.
Title: Structure Kits In Factories
Post by: Hooman on December 04, 2005, 06:07:36 PM
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.