Random seems broken

Ask questions and share info about GunGame 5

Random seems broken

Postby lqhnybear » Thu Oct 07, 2010 6:31 am

Since the updates today I'm not getting random gun orders anymore. I've tried restarting the server, etc and it just won't work. The order is the same every round.

I'm running:
Mani 1.2V
ES v2.1.1.338
SPE v1.5.0f r79 even though it says it should be 1.5.0f r83 in the download. lol
GG v5.1.481
Last edited by lqhnybear on Sun Oct 10, 2010 10:39 am, edited 1 time in total.
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Re: Random seems broken

Postby lqhnybear » Sun Oct 10, 2010 10:12 am

Did more testing and it appears to only change the weapon order on server restart. Every map change it's the exact same order. Can anyone help with this?
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby lqhnybear » Sun Oct 10, 2010 11:12 am

ok... I'm lost for words....

I disabled bots on my server and Random weapon order works fine now. I then re-enabled the bots and tried again and Random was broken. How and or why would having bots break Random weapon orders? Here is my bot.cfg file, which is loaded via the server.cfg. Don't see why it'd cause the random weapon order to break.

bot_quota 4
bot_quota_mode fill
bot_difficulty 1
bot_chatter off
bot_auto_follow 0
bot_auto_vacate 1
bot_join_after_player 0
bot_defer_to_human 1
bot_prefix "[Lemming]"
bot_allow_rogues 1
bot_walk 0
bot_join_team any
bot_eco_limit 2000
bot_allow_grenades 1
bot_all_weapons
bot_allow_grenades 1
bot_allow_pistols 1
bot_allow_sub_machine_guns 1
bot_allow_shotguns 1
bot_allow_rifles 1
bot_allow_snipers 1
bot_allow_machine_guns
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby XE_ManUp » Tue Oct 12, 2010 9:45 pm

I honestly have no idea. I would have to look at the script. I am on the road right now.
XE_ManUp

Site Admin
Site Admin
 
Posts: 662
Joined: Sat Sep 06, 2008 3:36 am

Postby lqhnybear » Wed Oct 13, 2010 2:02 am

Traveling to Miami to be my manslave again? lol I'm back and I'm gonna be putting you to work son.... lol Gonna send you a pm with a couple questions, and see what you think.
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby lqhnybear » Sat Oct 16, 2010 12:06 pm

Hmmm never mind Random is broken again. No bots, no changes to the server, and random is toast. It worked for a few map changes and is now messed up again. Every map change it's the same weapon order. I need some help figuring this one out. It seems like after a server restart if I join the server alone, pick a team and change maps. The weapon order gets updated and changed but as soon as people start playing the weapon order gets stuck.
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Re: Random seems broken

Postby lqhnybear » Mon Oct 18, 2010 2:01 am

ok, I give up. I completely reinstalled the server. Deleted everything and tried to see if elim would work on a fresh install. No luck as soon as people start playing the map, getting kills, when you change the map the weapon order remains the same. It only changes on a server restart.

Is there any way to give debug info to help show what might be wrong?
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Tue Oct 26, 2010 7:16 pm

I just tested to see if I had this issue, but it works fine for me. I ran 3 maps, with just bots, and each time the weapons were random.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby lqhnybear » Tue Oct 26, 2010 7:44 pm

It's really weird man, it was not working for quite awhile and then out of no where it started to work. I thought I posted here but maybe it was in the ES forums. I can't figure it out. No changes were made to the server nothing was done different, it just started working out of no where.

Sorry again for not updating this post.
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Re: Random seems broken

Postby lqhnybear » Wed Oct 27, 2010 6:22 am

Damn it spoke to soon. It broke again some time today. The random weapon order only updates on server restart, with every map change it is the exact same weapon order. I need to restart the server for it to change the order.

I'm lost again. Any ideas on how to trouble shoot it, or debug the problem are welcome. For it to keep going from working to not working randomly is a mystery to me.
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Wed Oct 27, 2010 6:34 am

I have no idea, that sounds very strange... This is with the same configs that you linked in the other thread, correct?

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Re: Random seems broken

Postby lqhnybear » Wed Oct 27, 2010 6:41 am

Yes sir. Same configs and it appears to happen randomly. Bots, no bots doesn't seem to matter.

Only thing I'm thinking and this is way out there as I'm talking out my ***. lol Is there some sort of DB that houses the weapon orders while the servers live that if some how becomes corrupted could get locked from changing the order? Or is it all done on the fly in memory?
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Wed Oct 27, 2010 3:17 pm

Well, it definitely does not store it in a db file. It 'should' on every map start re-randomize the order:
../addons/eventscripts/gungame51/gungame51.py wrote:
# under es_map_start

    # If gg_weapon_order_sort_type is #random, re-randomize it
    if str(gg_weapon_order_sort_type) == "#random":
        WeaponManager().type = "#random"
That should cause the weapon_order to be ran again, which 'should' make it randomly different from the previous map's weapon_order. It is 'possible' that it randomly makes it the same weapon_order as the previous map, but that would be very, very random, and would not happen very often at all.

Now, if you have multiple rounds of GunGame on each map, I don't think it re-randomizes it for that, but I also don't think that is what you are talking about.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby lqhnybear » Wed Oct 27, 2010 3:33 pm

Nope this is after a map change, it doesn't re order the weapons. Yesterday I changed the map 15 times and it had the exact same weapon order every time.


*EDITED - Just thought of this too*
With the latest version of ES 2.1.1.360 are these commands in the autoexec.cfg still needed? Don't know if this could effect it or not.
sv_allow_wait_command 1 // Required for EventScripts for the time being
stuffcmds // This is the line that fixes the IP issue & other strange issues


Also there is now a new file with ES called the "eventscripts_autoexec.cfg" in there is
eventscripts_setipcmdline 0


Should I even have this or should I get rid of it?
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Wed Oct 27, 2010 4:38 pm

I'm fairly certain that sv_allow_wait_command and stuffcmds are still needed. As for the eventscripts_setipcmdline, setting it to 0 can only have a negative effect. If you have an IP set in the command line, having that set to 1 will fix an issue that was in previous ES versions that caused the IP address to change. If you do not specify an IP address in the command line, having it set to 1 or 0 will make no difference.

As for your issue, I want you to extract the attached files and overwrite your current files. Once you are noticing that you are having this issue again, attach the newly created ../addons/eventscripts/gungame51/weapon_orders.txt and ../addons/eventscripts/gungame51/random_order.txt files here.

Thanks,
Satoon
Attachments
random_test.zip
(11.5 KiB) Downloaded 617 times
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Re: Random seems broken

Postby lqhnybear » Thu Oct 28, 2010 1:28 am

Ok here's the results after 4 map changes.

Every map from the first one after the server was restarted had this weapon order.
***************************
10/27/2010 @ 17:12:32
***************************

sg552 - 1
fiveseven - 1
g3sg1 - 1
usp - 1
deagle - 1
xm1014 - 1
galil - 1
m3 - 1
aug - 1
ump45 - 1
sg550 - 1
famas - 1
mp5navy - 1
glock - 1
awp - 1
ak47 - 1
m249 - 1
p228 - 1
p90 - 1
elite - 1
tmp - 1
mac10 - 1
m4a1 - 1
scout - 1
hegrenade - 1
knife - 3


For some reason the weapon order in "nade_bonus_order.txt" is getting randomized too. This has always happened as well even though I don't believe it should. What I have found to be true with this is it will randomize the starting weapon, then follow the sequence in the "nade_bonus_order.txt" from there on out. So if this is the bonus order.
=> Nade Bonus Order

glock
usp
p228
deagle

and it randomly picks p228 to start on, then it will follow the file after that. deagle, glock, usp, p228. Then next map it'll be on deagle and follow the order again. Kind of odd behavior. Don't know why this file is even getting randomized.

Anyway I hope this data helps. If I think of anything else I'll post. Sorry it took so long to get back to you, I had been awake for 60+ hours and crashed hard today. lol
Attachments
texts.zip
weapon_orders.txt
random_order.txt
(700 Bytes) Downloaded 616 times
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Thu Oct 28, 2010 3:03 am

Hmm, I guess I need to account for the nade_bonus_order, as it actually threw my test off. I'll get back to you once I've had a chance to look further into this.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Re: Random seems broken

Postby lqhnybear » Thu Oct 28, 2010 3:18 am

Sounds like a plan.
HnyBear's WhoreHouse - 207.210.253.104:27015
Image
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Postby satoon101 » Thu Oct 28, 2010 6:18 am

I believe I have found the issue. However, fixing it will definitely take some time. If I'm correct, changing the value of gg_nade_bonus will cause the "currentorder" to become the value of gg_nade_bonus, instead of the weapon_order. This means that instead of the weapon_order being re-randomized, the gg_nade_bonus order will be re-randomized.

GG will still use the regular weapon_order as the actual gun order, but it just will not be re-randomized.

Thank you for your assistance. Without those logs, I would have never figured that one out. Hopefully we can get this fixed fairly soon.

Satoon
satoon101

Site Admin
Site Admin
 
Posts: 1055
Joined: Thu Oct 09, 2008 4:27 pm

Postby lqhnybear » Thu Oct 28, 2010 6:27 am

That's great, glad I could help and glad I figured out that the random sound/songs for everything already works. No need to waste time recoding that now. lol

I'll wait patiently on your changes so I can test them out. :)
lqhnybear

Private 1st Class
Private 1st Class
User avatar
 
Posts: 133
Joined: Thu Oct 08, 2009 4:48 am
Location: North Bay Village, Fl

Next


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 3 guests

cron