Max Unit Count Questions
Moderator: Moderators
- DarthXeon
- Banned
- Posts: 84
- Joined: Mon Sep 19, 2011 5:41 pm
- Projects :: I move fast... Lightning fast...
- Location: In A Nearby Solar System
Max Unit Count Questions
Ok i was using a edited droideka and i edited its points to unlock part but the game says
"max unit count" "unit count = 0"
does anyone have a fix if so thanks
"max unit count" "unit count = 0"
does anyone have a fix if so thanks
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Max Unit Count Questions
Please post your Droideka's ODF.
- DarthXeon
- Banned
- Posts: 84
- Joined: Mon Sep 19, 2011 5:41 pm
- Projects :: I move fast... Lightning fast...
- Location: In A Nearby Solar System
Re: Max Unit Count Questions
Hidden/Spoiler:
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
Re: Max Unit Count Questions
Max units are set up in the lua. Please post it.
- DarthXeon
- Banned
- Posts: 84
- Joined: Mon Sep 19, 2011 5:41 pm
- Projects :: I move fast... Lightning fast...
- Location: In A Nearby Solar System
Re: Max Unit Count Questions
yea thats what i was thinkin'
Hidden/Spoiler:
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Max Unit Count Questions
This is the memory pool for the Droideka unit. You currently have 0 as the second value. Change it to 2 to reflect that you also have the maximum spawn count for the Droideka as 2.DarthXeon wrote:Code: Select all
AddWalkerType(0, 0) -- special -> droidekas
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Max Unit Count Questions
Ah yes, the memory pools. It's good to make it a habit to always check these sorts of things when dealing with sides and LUA.
- DarthXeon
- Banned
- Posts: 84
- Joined: Mon Sep 19, 2011 5:41 pm
- Projects :: I move fast... Lightning fast...
- Location: In A Nearby Solar System
Re: Max Unit Count Questions [Solved]
Thank You! 
EDIT1
wait would i have to set EntityDroid to 2 or higher?
EDIT2
yea its not working
i thought it would because GT is so smart
Triple posting is against the RULES; please EDIT your post instead -Staff
EDIT1
wait would i have to set EntityDroid to 2 or higher?
EDIT2
yea its not working
Triple posting is against the RULES; please EDIT your post instead -Staff
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Max Unit Count Questions [Solved]
maybe just maybe its a problem on the other side...
can you please post your luad and debuglog?
can you please post your luad and debuglog?
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Max Unit Count Questions [Solved]
EntityDroid wasn't the memory pool line I was referring to in my post to you. EntityDroid refers to the remote droids, by the way.DarthXeon wrote:wait would i have to set EntityDroid to 2 or higher? yea its not workingi thought it would because GT is so smart
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Max Unit Count Questions [Solved]
These aren't the memory pools you're looking for...AQT wrote:EntityDroid wasn't the memory pool line I was referring to in my post to you. EntityDroid refers to the remote droids, by the way.DarthXeon wrote:wait would i have to set EntityDroid to 2 or higher? yea its not workingi thought it would because GT is so smart
- DarthXeon
- Banned
- Posts: 84
- Joined: Mon Sep 19, 2011 5:41 pm
- Projects :: I move fast... Lightning fast...
- Location: In A Nearby Solar System
Re: Max Unit Count Questions [Solved]
i just said forget it i meant i changed the first memory pool first then it continued to not work so i guessed at the EntityDroid thing
- DarthD.U.C.K.
- Master of the Force

- Posts: 6027
- Joined: Wed Sep 27, 2006 11:05 am
- Location: Duckburg, Germany
Re: Max Unit Count Questions [Solved]
ok, so this is solved/unneeded now, right?
- Dakota
- Field Commander

- Posts: 991
- Joined: Mon Dec 06, 2010 8:21 pm
- Projects :: making random weapon assets
- xbox live or psn: PS3 beats xbox
- Location: at a computer desk floating around in space
Re: Max Unit Count Questions
not to hi-jack a thread or anything but where did you find some of these memory pools, they could be pretty helpful for anyone who needs them?
this one right here could help me solve my problem with only being able to have 6 dispensed portable turrets on the map, if it works then i would be very happy.
Code: Select all
SetMemoryPoolSize("EntityPortableTurret", 0) -- nobody has autoturrets AFAIK - MZ
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Max Unit Count Questions
Off-topic: In addition to adjusting the EntityPortableTurret memory pool value, you also need to change the value of the MaxItems parameter in the portable turret's dispenser ODF. The first restricts the limit on all portable turrets on the playing field, including AI-dispensed or other portable turret types, whereas the second only restricts the limit on a specific portable turret dispenser weapon. So in order to calculate the EntityPortableTurret value, you multiply the MaxItems value of each portable turret type by each of the maximum spawn count of the units whose arsenal includes a portable turret dispenser weapon. Then, you sum up those products, and that should be your EntityPortableTurret value. Or you could just approximate the value.
- Dakota
- Field Commander

- Posts: 991
- Joined: Mon Dec 06, 2010 8:21 pm
- Projects :: making random weapon assets
- xbox live or psn: PS3 beats xbox
- Location: at a computer desk floating around in space
Re: Max Unit Count Questions
i already had the max items set, i have a ton of dispensables: tanks, turrets, shield turrets, auto turrets that fire by themselves or you can get in, zapper auto turrets, fireball turrets, wall/barriers/bricks, and more. it just turns out that i wasn't able to dispense as many things as i had set it to and i didn't know why. i have even made topics about it before but now i finally know that it was *just* one line of code that was causing the problems. i could actually go back and restart my fort wars map idea now that i know what is was that was wrong.AQT wrote:Off-topic: In addition to adjusting the EntityPortableTurret memory pool value, you also need to change the value of the MaxItems parameter in the portable turret's dispenser ODF. The first restricts the limit on all portable turrets on the playing field, including AI-dispensed or other portable turret types, whereas the second only restricts the limit on a specific portable turret dispenser weapon. So in order to calculate the EntityPortableTurret value, you multiply the MaxItems value of each portable turret type by each of the maximum spawn count of the units whose arsenal includes a portable turret dispenser weapon. Then, you sum up those products, and that should be your EntityPortableTurret value. Or you could just approximate the value.
Hidden/Spoiler:
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Max Unit Count Questions
A mounted turret that can be dispensed is not a portable turret. It falls under the memory pool category of MountedTurret.
And there's no need to quote me entirely, unless my post wasn't directly above yours.
There is the possibility that you have hit a limit that is less than the memory pool value you assigned.Dakota wrote:it just turns out that i wasn't able to dispense as many things as i had set it to and i didn't know why.
And there's no need to quote me entirely, unless my post wasn't directly above yours.
- Dakota
- Field Commander

- Posts: 991
- Joined: Mon Dec 06, 2010 8:21 pm
- Projects :: making random weapon assets
- xbox live or psn: PS3 beats xbox
- Location: at a computer desk floating around in space
Re: Max Unit Count Questions
i had set it to portable turret in the odf but i already had mounted turret set to 32 at the time
as for that quote you made of my last post: the problem was fixed right after i put in the line of code that i said in my first post on this thread.
i think that my portable turret/mountable turret could have landed under 2 pools. i could only dispense 6 of them just like with other things and then i could click and nothing appeared. i did raise my memory pool for mounted turrets just in case. i have a bunch of turrets on the map and with me allowing 20 turrets of this type to be dispensed (10 for each team) i need it probably.
i was just explaning my problem that i had, i tend to do that alot after i figure out what was wrong. its like a summary to me i guess. either way the problem is now fixed and i *probably* won't make this mistake again... at least anytime soon.
as for that quote you made of my last post: the problem was fixed right after i put in the line of code that i said in my first post on this thread.
i think that my portable turret/mountable turret could have landed under 2 pools. i could only dispense 6 of them just like with other things and then i could click and nothing appeared. i did raise my memory pool for mounted turrets just in case. i have a bunch of turrets on the map and with me allowing 20 turrets of this type to be dispensed (10 for each team) i need it probably.
i was just explaning my problem that i had, i tend to do that alot after i figure out what was wrong. its like a summary to me i guess. either way the problem is now fixed and i *probably* won't make this mistake again... at least anytime soon.
