Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Starting Map Editor, Need Assistance

Author
Message
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 20th May 2006 17:54 Edited at: 20th May 2006 17:59
When I press 'O' the input thing comes up, and I enter the ID number, and then I get an access violation pointing to dbLoadObject.

Know what this could be from?



5/14/06- 1427 lines into my 3D game engine! Player Movement and File System completed. Working on weapon inventory and player classes.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th May 2006 19:18
dbInput returns a string, not a number. You can't cast a string to a number - you have to translate it using a function instead.

Try something like this:
dbLoadObject(ObjectPathLib[dbValR(cID)],iObjectCount);

For free Plug-ins and source code http://www.matrix1.demon.co.uk
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 20th May 2006 20:29
--------------------Configuration: InsaneMapEditor - Win32 Debug--------------------
Linking...
LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library
dsdkmain.obj : error LNK2001: unresolved external symbol "__int64 __cdecl dbValR(char *)" (?dbValR@@YA_JPAD@Z)
Debug/InsaneMapEditor.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

InsaneMapEditor.exe - 2 error(s), 1 warning(s)

5/14/06- 1427 lines into my 3D game engine! Player Movement and File System completed. Working on weapon inventory and player classes.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 20th May 2006 20:33
Who would be really surprised to find that the prototype doesn't match the library definition?

Sod it, skip the dbValR function and use atoi instead:
dbLoadObject(ObjectPathLib[atoi(cID)],iObjectCount);

You may need to add an include to stdlib.h to your source code to compile this.

For free Plug-ins and source code http://www.matrix1.demon.co.uk
Briere
19
Years of Service
User Offline
Joined: 28th Feb 2005
Location: Amherst New York, United States
Posted: 20th May 2006 21:11
hm still get assec violation point to

0042BDB8 repne scas byte ptr [edi]

I have no idea if thats means anything to you, but it certainly doesnt to me

5/14/06- 1427 lines into my 3D game engine! Player Movement and File System completed. Working on weapon inventory and player classes.

Login to post a reply

Server time is: 2024-11-19 06:28:11
Your offset time is: 2024-11-19 06:28:11