gametechmods
Robot Arena => Discussion => Topic started by: Erik The Born on February 22, 2013, 11:44:06 AM
-
Hey, i was wondering if theres any way to remove the immobile countdown timer? Id really appreciate if youd let me know how.
PS: I have solved this. But you might want to keep the topic here, so people can see my solution to it.
-
Do you mean to make it so bots don't get counted out at all, or just get rid of the timer that shows up on the screen?
-
Do you mean to make it so bots don't get counted out at all, or just get rid of the timer that shows up on the screen?
Both, I'm sure.
-
Might be possible to get rid of the timer on screen but that itself is useless.. and I'm pretty sure getting rid of the countdown would also be a source code thing. Besides, robots that just sit in one place are either boring or dead anyway ;p
-
You seem to like asking about source code mods.
We're severely limited (yes that's what I call all our TC and modding lol) by not having the source coding for RA2 and we can only change so much with what we have.
-
I think, basically, it's fair to say the only stuff we can fully mod right now are the folders you see in the RA2 directory.
-
The countdown clock and immobilization time may be turned off by using the following command.
plus.practice(True)
Unfortunately, we are unable to turn off one and not the other. You can try to use the sergepatcher for this but it isn't very easy to use.
-
Me and my source code modding questions... So were do i add that in the py script? u are right practice arena doesnt have immobile. add it and it might work.
Or is it in the console u paste it?
Oh well i found it out the link http://www.q3k.org/UnlimitedMass.zip (http://www.q3k.org/UnlimitedMass.zip) But its down could you please reupload it?
-
You can put plus.practice in the Activate method of Arenas/__init__.py if you want it to apply to all arenas or in the Activate method of the Arena.py that you want it to be turned off in. If you want an example of its use, it may be found in the Online Arena's PY but as a comment (remove the "#" to enable it).
I added the UnlimitedMass.zip file to the downloads section (here (https://gametechmods.com/forums/index.php?action=downloads;sa=view;down=50)).
-
I did as you said but it crashes when i try to start it. is this right? Nevermind i got it working. I think i had to import the right files and i had to change the Position to be right after the intro thing. like this. self.Intro = plus.practice(True) replacing the None with the practice thing lol. i added these on the import list. though i dont know if you really have to add these import things. remember some of these i added already exists in the file but thats ok, u can actually import stuffs more then once without crashes.
import plus
import Arenas
import random
import Hazards
import math
PS: This also has a side effect. Time counter for matches is also off. so you always have infinity time to play matches.
(https://gametechmods.com/uploads/images/56842Errorsas.png)
-
Yeah, that is fine.
The only dependency that plus.practice has is the plus module (that's why you have import plus).