not sure what is causing this but I've followed everything i can find. I'm trying to compile the example from the sdk_engine folder and it compiles fine but won't run the level I get
c:\program files\Microsoft Visual Studio\My Projects\test\debug\test.exe damaged
startup failure - any key to abort
using the c++ file that came with gamestudio 7
any ideas what I may be doing wrong ?
thankyou
Posted By: jcl
Re: higher level programming issue - 03/06/09 07:14
Yes, the EXE won't suffice, you also need to create an acknex.dll. Read the chapter "Engine SDK" in the manual - it's described there.
yes i did that with the publish function of wed and I get that error. I read and followd the manual but its a bit vague
Posted By: jcl
Re: higher level programming issue - 03/06/09 07:45
Can you describe all the steps you did? When the manual is unclear, I'd like to see the problem and improve the description.
The error message means that you did not create an acknex.dll after compiling your EXE. Or you did, but then copied a wrong acknex.dll, or started a wrong exe, or something like that. You must create an acknex.dll everytime _after_ compiling the EXE.
Posted By: LazyDog
Re: higher level programming issue - 03/06/09 15:08
Syndor_Computing,
this is from my Delphi SDK help manual... simply replace the word Delphi with VS and you should be very happy to not have to build an acknex.dll EVERY TIME you re-compile. This has saved me literally days worth of time (I'm serious)
How to run your own delphi program you're writing:
Copy the following files, d3dx9_30.dll, acknex.dll, ackutl.dll, sed.exe and ack6p.key from the gamestudio directory to the directory you are developing and/or want to run your program from. (This means copy those files to the Directory where you're writing you're own Delphi Program) That's it!! just compile and and it will run. A project compiled like this IS NOT meant to be distributed!! You must use a release version and do a publish to distribute!!
I created a vc++ project, linked against the gstudio7\sdk_engine\acknex.lib file. then i used the publish function of wed after compiling the level wich i named arena.wmb. then i copied the dlls that publish created from the arena.cd folder to where my exe is. I'm using the e_tutorial.cpp source code exactly as is with lesson 1 defined.
I'm using 7.07 Pro on windows XP Home edition and Visual Studio 6 Enterprise ( I prefer it over 2008) although i have 2008 as well but get the same results from either one.
Posted By: jcl
Re: higher level programming issue - 03/06/09 17:36
Beta versions can't be used with the SDK. You need to purchase a full, legal version.