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)
|
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)
|