GangsterAngel Posted October 8, 2005 Share Posted October 8, 2005 dose anyone know a way to stop this error for certan CVARS? since some of my menus work of CVARS. and the values dont update correctly. Link to comment Share on other sites More sharing options...
razorace Posted October 8, 2005 Share Posted October 8, 2005 This error shouldn't be occuring at all. It's value is probably getting changed too often for some reason. Link to comment Share on other sites More sharing options...
GangsterAngel Posted October 9, 2005 Author Share Posted October 9, 2005 yes, thats the problem, for like the bank menu, if the slider for how much credits you want to withdraw is moved , it skips it sometimes, cuz the value it uses to see how much credits you want to withdraw changes too rapid... Link to comment Share on other sites More sharing options...
razorace Posted October 9, 2005 Share Posted October 9, 2005 mmm, it's probably based on the nature of the cvar you're looking at. I've never heard of this error before so I'm not really sure how to help. What is the exact error message? Link to comment Share on other sites More sharing options...
GangsterAngel Posted October 9, 2005 Author Share Posted October 9, 2005 Warning: Too many info changes, last info ignored Cvar: "JKG_Deposit" { &JKG_Deposit, "JKG_Deposit", "0", CVAR_USERINFO | CVAR_ROM }, http://img46.imageshack.us/img46/6399/jkgbankmenu0mi.jpg Link to comment Share on other sites More sharing options...
GangsterAngel Posted October 9, 2005 Author Share Posted October 9, 2005 BTW, it needs to be USERINFO so the server can get the value. char *s; s = Info_ValueForKey( userinfo, "JKG_Deposit" ); Link to comment Share on other sites More sharing options...
razorace Posted October 10, 2005 Share Posted October 10, 2005 ah, well, my guess is that you need to have a client-only cvar that acts as a buffer between the "real" cvar and your menu slider. And then when you press the "deposit" button, the code then updates the "real" cvar based on the current value in your client-only cvar. Link to comment Share on other sites More sharing options...
MDN14 Posted October 10, 2005 Share Posted October 10, 2005 or couldnt you make it so you can type in the ammount and then when the player clicks submit or deposit or whatever then it sends the info to the cvar? Link to comment Share on other sites More sharing options...
CerberuS_21 Posted October 10, 2005 Share Posted October 10, 2005 Yeah, doing what razorace proposed is your best choice Each time a USERINFO cvar is being updated, an updated userinfo string is being sent from client to server. If that happens too frequently within a certain timeframe the server just refuses some of the userinfo updates and gives that error message. It's also noticable in basejka (Siege). If you change class quickly a couple of times in a row you'll get that error as well. Link to comment Share on other sites More sharing options...
MDN14 Posted October 11, 2005 Share Posted October 11, 2005 or if you change skins a few times quickly even in ffa mode Link to comment Share on other sites More sharing options...
ensiform Posted October 11, 2005 Share Posted October 11, 2005 funny thing with this warning is it doesnt exist in q3, jamp, or in the quake 3 full-engine sdk. (looking in the hex edit or in notepad) Link to comment Share on other sites More sharing options...
GangsterAngel Posted October 11, 2005 Author Share Posted October 11, 2005 new problem now lads, the "REAL" and "FAKE" cvar dosent update before the Deposit is done. for example , i goto deposit 900 . it sets JKG_Deposit , to JKG_TempDeposit ( 900 ) then deposits JKG_Deposit , but it dosent update quick enough and thinks its 0 . then if i goto deposit 1200 after trying 900 , it will deposit 900 . cuz it hasent updated quick enough... UI_Script else if (Q_stricmp(name, "JKG_UpdateCvars") == 0) { char TempString[512]; trap_Cvar_VariableStringBuffer( "JKG_TempDeposit", TempString, sizeof(TempString) ); trap_Cvar_Set ( "JKG_Deposit", TempString /*trap_Cvar_VariableValue("JKG_TempDeposit")*/ ); } else if (Q_stricmp(name, "JKG_UpdateTempCvars") == 0) { char TempString[512]; trap_Cvar_VariableStringBuffer( "JKG_Deposit", TempString, sizeof(TempString) ); trap_Cvar_Set ( "JKG_TempDeposit", TempString /*trap_Cvar_VariableValue("JKG_Deposit") */); } Menu: //===================================================// //============ BANK MENU ====================// //===================================================// menuDef { name "ingame_bank" visible 0 fullscreen 0 outOfBoundsClick // this closes the window if it gets a click out of the rectangle rect 10 100 180 180 focusColor 1 1 1 1 style 1 border 1 onESC { close all } onClose { } onOpen { UiScript "JKG_UpdateTempCvars" show deposit_bar } Deposit button ( menu ) itemDef { name dpstbutton group none rect 20 80 160 20 type ITEM_TYPE_BUTTON text Deposit textalign ITEM_ALIGN_LEFT textalignx 4 textaligny 12 font 4 textscale 1 forecolor 1 .682 0 1 visible 1 ownerdraw UI_CHAT_TACTICAL action { uiScript "JKG_UpdateCvars" exec "JKG_DepositCash Deposit" close all } } .. so it is setup right. any ideas? Link to comment Share on other sites More sharing options...
GangsterAngel Posted October 11, 2005 Author Share Posted October 11, 2005 all i can think of is adding a delay on doing the Deposit command. but im not 100% that would work ALL the time.. what do you guys think? if i just made it deposit 1 seccond after the Deposit command is callled. think it would work for evryone? Link to comment Share on other sites More sharing options...
razorace Posted October 11, 2005 Share Posted October 11, 2005 can you directly alter the cvar using .integer on the UI side? That should fix the update speed issue. Link to comment Share on other sites More sharing options...
razorace Posted October 11, 2005 Share Posted October 11, 2005 funny thing with this warning is it doesnt exist in q3, jamp, or in the quake 3 full-engine sdk. (looking in the hex edit or in notepad) hmmm, I think it's a JKA only sort of issue that was added to prevent people from lagging the server by spamming changes. I could have sworn that the actual warning/check is in the .dll code. Link to comment Share on other sites More sharing options...
GangsterAngel Posted October 11, 2005 Author Share Posted October 11, 2005 i dont THINK i can edit a clientside CVAR directly via .integer , and if you can, i have no idea how. ive gone with the 1 seccond wait for now. and it works fine for me... on all menus.. the "JKG_Deposit" is used for more than the bank menu, EG, Passwording homes. and its all working good. just a seccond delay now thats all. thanx for the idea Ace. Link to comment Share on other sites More sharing options...
ensiform Posted October 12, 2005 Share Posted October 12, 2005 you should be able too... ie: try cg_autoswitch.[intellisense will show the popup window for what u can do] Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.