cant exit factory

cant exit factory

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

ghobot21
Posts: 30
Joined: 11 Jun 2007, 10:37

cant exit factory

Post by ghobot21 »

well, kbot cant exit from the factory.it got stuck on the building platform(im making a new mod, so, maybe there is something that i forgot to add or edit).can anyone help me?? :cry:
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Post by KDR_11k »

Try more information.
User avatar
Boirunner
Kernel Panic Co-Developer
Posts: 811
Joined: 05 Feb 2007, 14:24

Post by Boirunner »

Did you define a reasonable yardmap?
ghobot21
Posts: 30
Joined: 11 Jun 2007, 10:37

Post by ghobot21 »

how can i know if im using a reasonable yardmap?is there a fomula?
User avatar
Pressure Line
Posts: 2283
Joined: 21 May 2007, 02:09

Post by Pressure Line »

look at the ones for the OTA factories for examples.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

Post what you have for a yardmap, and the footprint size.
ghobot21
Posts: 30
Joined: 11 Jun 2007, 10:37

Post by ghobot21 »

i change the yardmap.the unit can get out from the factory now.
ok, new question.each time i select a new unit or click to build a unit in the factory, the game will lag for 1 second.is it because of the mod or spring?(i have 4 races in my mod)
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Post by Noruas »

Are you using .sd7 or .sdz, if you do not do a .sd7 format correctly, it will take forever to load and forever from making a new unit.
User avatar
Tim Blokdijk
Posts: 1242
Joined: 29 May 2005, 11:18

Post by Tim Blokdijk »

Best is to use .sdd for mod development.
ghobot21
Posts: 30
Joined: 11 Jun 2007, 10:37

Post by ghobot21 »

im using sd7.how can i get .sdd?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

You leave all your content unpacked in a directory called your_mod.sdd

But that won't solve any yardmap issue.
ghobot21
Posts: 30
Joined: 11 Jun 2007, 10:37

Post by ghobot21 »

is there any tutorial on yardmap?i cant find any on wiki
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

example:

Code: Select all

[UNITINFO]
	{
*snipped out unimportant stuff*
	FootprintX=6;
	FootprintZ=6;
*snipped out unimportant stuff*
	YardMap=cooooc cooooc cccccc cccccc cccccc cccccc;
*snipped out unimportant stuff*
}
The yard map is 6 X 6

o represents closed during construction
c represents open during construction

it is represented as cooooc in 6 collumns

so look at it like this, with the bottom 4 being the front:
cooooc
cooooc
cccccc
cccccc
cccccc
cccccc


I hope this helps.
Last edited by smoth on 29 Jun 2007, 06:54, edited 1 time in total.
User avatar
Peet
Malcontent
Posts: 4384
Joined: 27 Feb 2006, 22:04

Post by Peet »

c represents closed during construction
o represents open during construction
You've mixed up o and c...
o is continually occupied, c is open during construction and closed otherwise.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

sorry I am half awake..

Yeah I was wondering why I had only two rows open.. I was like wtf, was I retarded or something, how does this work.. it looks all backwards...

lol, I guess that is what I get for not making a new factory for some time :P
ghobot21
Posts: 30
Joined: 11 Jun 2007, 10:37

Post by ghobot21 »

ok, the unit can come out from the factory.however, i know there is something a miss about my yardmap because if i make a waypoint to the north,the unit will 'walk' in the factory without trying to get out.so, i hope anyone can help me by pointing out my mistake

x=11 z=10

yardmap=ooocccccooo ooocccccooo ooocccccooo ccccccccccc ccccccccccc ccccccccccc ooocccccooo ooocccccooo ooocccccooo ooocccccooo ;

my factory has only south as an exit.north,east,west is blocked by factory wall.is there any mistake?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Post by zwzsg »

ghobot21 wrote:my factory has only south as an exit.north,east,west is blocked by factory wall.is there any mistake?
According to your yardmap, it is not. The polygons of your models do not matter. What matters are the o and c in your yarmap. Currently your yardmap is:
###........###
###........###
###........###
......................
......................
......................
###........###
###........###
###........###
###........###
So 3x3 or lower units can go out all direction, and 5x5 or lower units can exit both south and north.

I suggest using something such as:
yardmap=ooooooooooo ooooooooooo ooooooooooo ooocccccooo ooocccccooo ooocccccooo ooocccccooo ooocccccooo ooocccccooo ooocccccooo;

Which would give you a:
###########
###########
###########
###...........###
###...........###
###...........###
###...........###
###...........###
###...........###
shaped yardmap when open.
ghobot21
Posts: 30
Joined: 11 Jun 2007, 10:37

Post by ghobot21 »

now, i understand.you make this whole 'yardmap-king' become easier when you show that picture of yardmap.thanks. :wink:
User avatar
Snipawolf
Posts: 4357
Joined: 12 Dec 2005, 01:49

Post by Snipawolf »

Yes, I line mine up in notepad if I get confused, lol...

It helps a lot
Post Reply

Return to “Game Development”