Page 1 of 1

Units won't shoot anymore

Posted: Wed Jun 29, 2011 5:08 pm
by Executer94
My map brings a lot of problems along now.

The AI is still there and also tries to attack me but everytime when they shoot there are no lasers. I can hear the shooting sound and see the animation but no laser is coming out. I never saw that before.

Re: Units won't shoot anymore

Posted: Wed Jun 29, 2011 7:05 pm
by Firefang
Are these custom weapons? If so you may have an issue withe the _ord part of the weapon. Most likely misspelled or named.

Re: Units won't shoot anymore

Posted: Thu Jun 30, 2011 11:10 am
by Executer94
No they are not. And I didn't change anything about the weapons. It just happened after I changed something at the map.

Re: Units won't shoot anymore

Posted: Thu Jun 30, 2011 1:27 pm
by DarthD.U.C.K.
it would be usefull to know what you changed. does the debuglog show any errors?

Re: Units won't shoot anymore

Posted: Thu Jun 30, 2011 2:45 pm
by Executer94
I added a bunch of turrets and frigates which have shields.

I run the modtools for the error log. For some reason it crashed when I tried to load the game with the modtools but when I played with the normal exe it was fine.

Here is my very long error log...
...
EDIT
This is part two of my error log
I had to many signs in my first post, I hope that's not seen as double posting
...

Your error log: http://textbin.com/m4141

Please do not double post; either trim your error log down, or use a text hosting site instead. -Staff

Re: Units won't shoot anymore

Posted: Thu Jun 30, 2011 2:49 pm
by DarthD.U.C.K.
wow, it seems like you are strechting countless memorypools. maybe the game simply cnat handle all effects etc. anymore and therefore doesnt display the lasers. can the lasers "hit" units?

Re: Units won't shoot anymore

Posted: Thu Jun 30, 2011 3:06 pm
by Executer94
yeah they can I think. I got damaged and it's the same with all weapons, no matter starfighters or units. I myself can shoot.

Is it possible that too many fighters and turrets overloaded the memory pool?

Re: Units won't shoot anymore

Posted: Thu Jun 30, 2011 3:21 pm
by DarthD.U.C.K.
yes, indeed. thats what i meant with "stretching too many memory pools".

Re: Units won't shoot anymore

Posted: Thu Jun 30, 2011 3:28 pm
by Executer94
Any other solution than removing turrets and fighters?

Re: Units won't shoot anymore

Posted: Thu Jun 30, 2011 4:05 pm
by Dakota
this happened to me when i made a bowcaster that shot over 1000 shots per click and was rapid fire and the shots had a long lifespan. if you shoot the gun about 7-20 times then nothing can shoot anymore but still makes sound, i never checked if my ones did damage though. i think this happens when ever there is too much going on (too many effects, shots, vehecals, ai, objects, etc.). if you want to see this its on the beta of mega weapons mod (my first mod) on filefront if you search it. it won't show up unless you use search.

i don't really know how to fix this other than upping the memory pools (which you may have maxed) and removing things like effects, extra units, objects, vehecals, extra details (like random small pebbles and grass)

Re: Units won't shoot anymore

Posted: Thu Jun 30, 2011 4:16 pm
by Executer94
Yeah it's a space map and there are a lot of effects going on.
Which line I would have to edit to increase the memory pool for "shooting"

Re: Units won't shoot anymore

Posted: Thu Jun 30, 2011 4:21 pm
by DarthD.U.C.K.
i doubt that tweaking memory pools will help. most memorypools for dynamic things like effects and animations are raised automatically.

Re: Units won't shoot anymore

Posted: Thu Jun 30, 2011 4:29 pm
by Dakota
well i had a long long post writen up and then i clicked that link for textbin to see the error log and it changed my screen instead of opening a new window... so now to write it again...


ok i am not sure about any of these really since i have very little lua knowledge

local weaponCnt = 210 // i think this is for weapons
SetMemoryPoolSize("Aimer", 22) //i think this is for aimming of weapons (maybe ai)
SetMemoryPoolSize("AmmoCounter", weaponCnt) //this is connected to the weapon count # i think
SetMemoryPoolSize("MountedTurret",12) //you said you had lots of turrets
SetMemoryPoolSize("PathFollower", 50) //if its in space there are probably paths the ships follow
SetMemoryPoolSize("Navigator", 50) //i don't know why but i think this could help the ai navigate
SetMemoryPoolSize("Obstacle", 375) //do you have much that you can run into?
SetMemoryPoolSize("UnitAgent", 50) //i think this is for ai but not sure
SetMemoryPoolSize("UnitController", 50) //i think this is for ai also but not sure
SetMemoryPoolSize("Weapon", weaponCnt) //i think this is for how many weapons you have
SetMemoryPoolSize("EntityFlyer", 4) //i think this should be high for the ships (flyers)


once again i am not sure of this at all but it may or may not help.

Re: Units won't shoot anymore

Posted: Thu Jun 30, 2011 4:32 pm
by Executer94
so I got to remove some stuff from the map I guess. Dang it that will hurt.

UPDATE:

Does it help when I just remove "effects" from the map editor do I have to remove them from the whole map folder?