![]() |
![]() ![]() |
![]() |
LordSkitch |
![]()
Post
#251
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
changed it to
CODE badcode and that seems to work. have to do more testing. changed it again, they were in infinite loops trying to get upgrades cause it didnt have checks to see if they could upgrade CODE morebadcode i put in a little doodad to make them say if they could get defensive upgrades via gBotGlobals.m_bCanUpgradeDef and it turns out its always 0, even when theres 3 hives and several of each chamber so now i think the problem lies here..: CODE else { if ( message_type == 0 ) { if ( state == 0 ) { num_loops = *(int*)p; state ++; read_states = 0; gBotGlobals.m_bCanUpgradeDef = FALSE; gBotGlobals.m_bCanUpgradeSens = FALSE; gBotGlobals.m_bCanUpgradeMov = FALSE; if ( gBotGlobals.IsDebugLevelOn(BOT_DEBUG_MESSAGE_LEVEL) ) BotMessage(NULL,0,"num upgrades : %d",num_loops); } else if ( got_loops < num_loops ) { if ( gBotGlobals.IsDebugLevelOn(BOT_DEBUG_MESSAGE_LEVEL) ) { //BotMessage(NULL,0,"reading upgrade info : %d...",got_loops); BotMessage(NULL,0,"Upgrade Info : %d...",*(int*)p); } switch ( *(int*)p ) { case 1: gBotGlobals.m_bCanUpgradeDef = TRUE; break; case 2: gBotGlobals.m_bCanUpgradeSens = TRUE; break; case 3: gBotGlobals.m_bCanUpgradeMov = TRUE; break; } // READ UPGRADE INFO got_loops++; } } and... i dont know what to do about that. i dont even know wtf it does. so you gotta come help me out mr cheese! ![]() [edit again] ok so i debugged it. if ( message_type == 0 ) needs to be if ( message_type == 128 ) and then the original get upgrade code you had works fine. gotta do more testing though. |
Cheeseh |
![]()
Post
#252
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
whats badcode / morebadcode ?
![]() the crash you found, make sure you select "Stop Always" for each exception in the Debug -> (Exceptions I think) the message stuff you posted is only for NS maps, not sure if it works on Combat maps, but I may have replaced it with Combat upgrading using BOT_COMBAT_UPGRADE instead of BOT_ALINE_UPGRADE if its a combat map. I still haven't looked at the gorge healing yet, I think a lot of debugging is required for it. I still don't have MS Visual studio 6 installed yet either ![]() |
LordSkitch |
![]()
Post
#253
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
badcode and morebadcode were big blocks of code that i decided didnt work and didnt need to show cause someone might try to use it.
|
LordSkitch |
![]()
Post
#254
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
ok so like.. heres some situations ive found
situation one 1st upgrade: movement bots dont get upgrades. 2nd upgrade: sensory bots get sensory 3rd upgrade: defense bots get sensory and defense situation two 1st upgrade: sensory bots dont get upgrades 2nd upgrade: defense bots get defense upgrades 3rd upgrade: movement bots get sensory and defense i need to create the third situation, but i dont know why theyre getting upgrades in weird patterns... i did a debug on the ... messages, and it'll say like message 128 upgrades: 8 upgrade 1 upgrade 1 upgrade 1 upgrade 1 upgrade 2 upgrade 2 upgrade 2 upgrade 2 or whatever, but .. well maybe the numbers have since become skewed... ill debug that next. but for now, PAIN PILLS CAUSE IVE BEEN WALKING AROUND THE LAB FOR THE PAST FIVE HOURS! |
Cheeseh |
![]()
Post
#255
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
argh !
I'll need to havee a look at this soon... I'll install MS VC 6 later today ![]() |
LordSkitch |
![]()
Post
#256
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
youre my hero
![]() |
Cheeseh |
![]()
Post
#257
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
Well I just installed and fixed a nasty "no change weapons/non attacking" bug in NS where the bots wouldn't change their weapons properly and wouldn't attack.
more stuff to some ![]() by the way are you trying to fix the upgrades for just NS Maps? I'm having a look at em now edit: It looks liek the latest NS uses different methods of showing Alien Updates, the "SetTech" message seems more important for upgrading. e.g. using rcbot debug "message" 1 ------ MESSAGE_BEGIN("SetTech") : "lam3r" ------- WRITE_BYTE(107) WRITE_BYTE(48) WRITE_BYTE(0) WRITE_BYTE(0) WRITE_SHORT(0) WRITE_SHORT(2) WRITE_BYTE(3) ---------MESSAGE_END("SetTech")------- ------ MESSAGE_BEGIN("SetTech") : "lam3r" ------- WRITE_BYTE(108) WRITE_BYTE(48) WRITE_BYTE(0) WRITE_BYTE(0) WRITE_SHORT(0) WRITE_SHORT(2) WRITE_BYTE(3) ---------MESSAGE_END("SetTech")------- ------ MESSAGE_BEGIN("SetTech") : "lam3r" ------- WRITE_BYTE(109) WRITE_BYTE(48) WRITE_BYTE(0) WRITE_BYTE(0) WRITE_SHORT(0) WRITE_SHORT(2) WRITE_BYTE(3) ---------MESSAGE_END("SetTech")------- the first message WRITE_BYTE, 107,108,109 correspond to: ALIEN_EVOLUTION_SEVEN = 107, // Celerity ALIEN_EVOLUTION_EIGHT = 108, // Adrenaline ALIEN_EVOLUTION_NINE = 109, // Silence this message happened after I built a movement chamber BUT how do I know if a hive has been destroyed and aliens can't get this upgrade anymore?? Haven't found out yet I beleive I added a CBotNSTechs class that uses these though edit again: oh and to fix the non-attack bug (perhaps you already found it but hey.) In bot.cpp in NORMAL_ATTACK: task CODE case MOD_NS: { BOOL bChangeWeapon = FALSE; if ( (m_pCurrentWeapon == NULL) || (m_pCurrentWeapon->HasWeapon(m_pEdict)==FALSE) ) { //Get weapon bChangeWeapon = TRUE; } if ( !bChangeWeapon || (m_CurrentTask->TaskInt() == 0) ) /* CHANGE THIS LINE */ { |
LordSkitch |
![]()
Post
#258
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
you can still upgrade if the hives dead, all you need is atleast one of those chambers.
http://www.joesucks.net/files/rcbot/source.rar heres a link to the source im using if you wanna see what ive done with it... i put in.. ummm.. the upgrade built message was changed from 0 to 128, i put in rcbot config disable_all_squads to keep people from squadwhoring, ummmm i gave the marines the ability to get scan in combat... uhhhhhhh... i dont know what else. ill go add that non-attacking thing and give it a test and see what goes on. |
LordSkitch |
![]()
Post
#259
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
its been up for 44ish hours with no problems, and the bots no longer will randomly look at something and try to kill it by looking mean, and will actually fire. i havent seen the gorges just watching, and i havent seen the fades whip out their acid rockets only to look and do nothing
commit that code! |
Cheeseh |
![]()
Post
#260
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
you could go through everything you fixed so I could have another look at it and also make any changes before committing
![]() ps.. Happy 25th there skitchy ! |
LordSkitch |
![]()
Post
#261
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
lol thanks..
when i get home from class ill go through it and try and figure out what ive changed.. i got some homework i gotta do tonight cause ive got a quiz tomorrow though ![]() |
Cheeseh |
![]()
Post
#262
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
you could always upload your compiled dll somewhere temporarliy for people to use the most recent updates you added
![]() |
LordSkitch |
![]()
Post
#263
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
Manage Your Attachments
You have used 1.11mb of 512k gimme more space on here and ill upload em here ![]() for the time being, it's uploaded on my content server http://www.joesucks.net/files/rcbot/rcbot_mm.dll no theres no linux compile of this version, cause i dont remember exactly what ol cheese changed to get it to run on linux. didn't even check to see if it'd compile. cause i know it wont. ![]() |
Cheeseh |
![]()
Post
#264
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
I can't upload to the forum either, i thiknk its because the FTP was changed, I still can't log into FTP, so the uploads are b0rked till its fixed, Bots United host problem
![]() ![]() |
LordSkitch |
![]()
Post
#265
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
tell em "reset my ftp password, or else."
|
BadLife |
![]() ![]()
Post
#266
|
RCBot Fan ![]() ![]() ![]() ![]() Group: Waypointers Posts: 144 Joined: 15-November 03 Member No.: 111 ![]() |
Looks like they are going to release NS 3.2 this Friday
![]() ![]() |
LordSkitch |
![]()
Post
#267
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
they'll probably change a bunch of constants, and redo systems that already work fine instead of fixing things that are broken, so nothing works right...
|
LordSkitch |
![]()
Post
#268
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
you know, i was digging through the code looking for crap ive changed... we might as well wait till friday to see if the bots even work. ns 3.2 is undoubtedly gonna change a bunch of crap and make stuff not work, and i dont think it'll be good if a bunch of time is put into the bots just to change them in 3 days.
|
Cheeseh |
![]()
Post
#269
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
fair do's ! ![]() |
LordSkitch |
![]()
Post
#270
|
![]() I cuddle with my bots. ![]() ![]() ![]() ![]() ![]() Group: Moderator Posts: 980 Joined: 16-April 04 From: Alvin, Texas Member No.: 291 ![]() |
i think that not shooting bug may have actually caused crashes... the server seems a tad more stable now...
still a couple issues with it.. but the god damn thing still wont let me debug it. its been so long since ive actually really used vc++ lol |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 22nd June 2025 - 03:47 AM |