Hello, I just started compiling and I'm having trouble with the setup files. How do I make them to fit the script? Were can I get them? Are they the same for all scripts?
Thanks,
Bapes
Hello, I just started compiling and I'm having trouble with the setup files. How do I make them to fit the script? Were can I get them? Are they the same for all scripts?
Thanks,
Bapes
which svn u using Bapes?
For ascent? Mmoforge.org/svn/ascent/trunk/
Bapes
Post your .cpps and your header file (.h)
At school atm Sector I'll talk to you on msn when I get home.
Bapes
they should all look the same aside from the obvious edits(in red)
setup.cpp
and setup.h#include "StdAfx.h"
#include "Setup.h"
#include <ScriptSetup.h>
extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
{
return SCRIPT_TYPE_MISC;
}
extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr) // Comment any script to disable it
{
SetupNAME(mgr);
}
#ifdef WIN32
BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved )
{
return TRUE;
}
#endif
#ifndef INSTANCE_SCRIPTS_SETUP_H
#define INSTANCE_SCRIPTS_SETUP_H
void SetupNAME(ScriptMgr * mgr);
#endif
i get error
Error PEPORT request failed on '/snv/ascent/!snv/vcc/defult
Error PEPORT request of '/snv/ascent/!snv/vcc/defult': 200 (Org.com - Only the best links ...)
pls some1 tell me why i keep getting that error..
sorry to post this in ur thread Bapes
I keep getting this error now -
Code:1>c:documents and settingsbapesdesktopascent svnsrcascent-world../ascent-shared/NGLog.h(298) : error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'const char *' to 'LPCWSTR'
Anybody know how to fix this?
Bapes
Edit: This also -
1>..\..\..\setup.cpp(12) : error C2491: '_exp_script_register' : definition of dllimport function not allowed