Buttons 5-8
Displaying 1-4 of 4 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
jrhee

I'm fiddling with the source trying to add functionality for buttons 5-8, but I'm running into some problems. I think I've added the appropriate code to the appropriate places in the source, and I've adjusted the predefines to accomodate the changes, but as soon as the engine starts, I get an HVAR unknown error in WriteInt().

Does anyone know offhand why this might be happening? I'm just getting aquainted with the engine source so I'm guessing it's probably something pretty obvious...

Posted on 2006-07-03 16:29:49 (last edited on 2006-07-03 16:30:26)

jrhee

Oops, this should probably be in the developer forum...

Posted on 2006-07-03 16:31:27

Overkill

Did you add the cases to the functions VCCore::ReadInt() and VCCore::WriteInt() in vc_core.cpp? Did you add the variables at the very end of the char* libvars[NUM_HVARS][3] array in vc_builtins.cpp? Inserting them in the middle of the array is a no-no, because every variable is assigned by that large switch/case statement collection. Additionally, make sure you break; or return; after each case block!

Posted on 2006-07-05 07:53:11 (last edited on 2006-07-05 07:53:25)

jrhee

Thanks! That helped. See the related thread in the dev forum.

Posted on 2006-07-10 20:52:57


Displaying 1-4 of 4 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.