Dwight
Member
|
RE: [Demande] Engine.pak
(05-05-2011 02:21 PM)lindsay² Wrote: arf! I do not understand: /
If you are using the mmo source code, which most likely you are, it's in Main.cpp
SnowCloud Entertainment - We are recruiting!
http://www.sc-entertainment.com
|
|
05-05-2011 07:11 PM |
|
Jben
Member
|
RE: [Demande] Engine.pak
ok, but server ou client
Code:
secure(code32);
void InitPre()
{
App.name("SawgeniuS v1.0.0a");
App.flag=APP_MINIMIZABLE|APP_MAXIMIZABLE|APP_RESIZABLE|APP_FULL_TOGGLE|APP_KB_EXCLUSIVE|APP_MEM_LEAKS|APP_WORK_IN_BACKGROUND;
App.x=0;
App.y=0;
D.sync(true).viewRange(300);
Renderer.type(RT_FORWARD);
D.shdMode(SHADOW_NONE);
#ifdef DEBUG
D.mode(640,480);
#else
D.mode(1024,768);
#endif
ConfigLoad();
#ifdef DEBUG
DataPath("Data"); // please use only this line
#else
#include "../Paks.add(data.pak).cpp" // please ignore this line and always use the one above
#endif
Paks.add("data.pak");
}
Bool Init()
{
if(!FC.create())Exit("Can't create UDP socket");
SetGui();
OptionsCreate();
ControlsCreate();
Physics.create(CSS_MATERIALS,true,"Bin");
Sky.frac(0.9f);
Sun.image=Images("gfx/sky/sun.gfx"); Sun.light_color=1-D.ambColor();
REPAO(Clouds.layered.layer).scale*=1.2f;
???
(This post was last modified: 05-05-2011 07:56 PM by Jben.)
|
|
05-05-2011 07:15 PM |
|
Dwight
Member
|
RE: [Demande] Engine.pak
Paks.add("data.pak", secure)
SnowCloud Entertainment - We are recruiting!
http://www.sc-entertainment.com
|
|
05-06-2011 09:48 AM |
|
Jben
Member
|
RE: [Demande] Engine.pak
secure(code32);
void InitPre()
{
App.name("SawgeniuS v1.0.0a");
App.flag=APP_MINIMIZABLE|APP_MAXIMIZABLE|APP_RESIZABLE|APP_FULL_TOGGLE|APP_KB_EXCLUSIVE|APP_MEM_LEAKS|APP_WORK_IN_BACKGROUND;
App.x=0;
App.y=0;
D.sync(true).viewRange(300);
Renderer.type(RT_FORWARD);
D.shdMode(SHADOW_NONE);
#ifdef DEBUG
D.mode(640,480);
#else
D.mode(1024,768);
#endif
ConfigLoad();
#ifdef DEBUG
DataPath("Data"); // please use only this line
#else
#include "../Paks.add(data.pak).cpp" // please ignore this line and always use the one above
#endif
Paks.add("data.pak", code32);
}
Bool Init()
{
if(!FC.create())Exit("Can't create UDP socket");
SetGui();
OptionsCreate();
ControlsCreate();
Physics.create(CSS_MATERIALS,true,"Bin");
Sky.frac(0.9f);
Sun.image=Images("gfx/sky/sun.gfx"); Sun.light_color=1-D.ambColor();
REPAO(Clouds.layered.layer).scale*=1.2f;
it's ok ?
|
|
05-06-2011 10:13 AM |
|
Dynad
Member
|
RE: [Demande] Engine.pak
Just test it with your secured pak file and look if it works..
There is always evil somewhere, you just have to look for it properly.
|
|
05-06-2011 12:31 PM |
|