Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Akow, TipmyPip, tomaslolo), 788 guests, and 11 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: level_load [Re: Devman] #184143
02/15/08 23:37
02/15/08 23:37
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
If you don't have the bmp for the model, just skip the request. It should load the model without a skin. You can also download lot of free models for GameStudio engine from the resources page. And use them for doing your exploration.


smile
Re: level_load [Re: D3D] #184144
02/15/08 23:40
02/15/08 23:40
Joined: Feb 2008
Posts: 19
D
Devman Offline OP
Newbie
Devman  Offline OP
Newbie
D

Joined: Feb 2008
Posts: 19
Okay, let me give that a try. I'll report back as soon as I get results.

Re: level_load [Re: Devman] #184145
02/15/08 23:44
02/15/08 23:44
Joined: Feb 2008
Posts: 19
D
Devman Offline OP
Newbie
Devman  Offline OP
Newbie
D

Joined: Feb 2008
Posts: 19
Grrr...It displays the same image! Is there an setting to clear the cache or something? It seems that the engine is not letting go of old models. Like its not updating. Does it matter that I'm using the free version?

Re: level_load [Re: Devman] #184146
02/15/08 23:52
02/15/08 23:52
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Are you sure that you are running the correct script? You can tell from the Preferences window. In SED there also is a checkbox which if enabled will run the current active script in the script editor. Here is what I do to load a simple model and attach function to it with Lite-c Pure Code:
#define PRAGMA_PATH "%EXE_DIR%\templates\models";

#include <acknex.h>

ENTITY* gsmodel;

void rotate_cube()
{
while(1)
{
my.pan +=3*time_step;
my.roll +=3*time_step;
wait(1);
}
}

void main()
{
level_load(NULL);
gsmodel = ent_create("cube.mdl",vector(0,0,0),rotate_cube);

while(1)
{
camera.x = -100;
camera.y = 0;
wait(1);
}
}




smile
Re: level_load [Re: D3D] #184147
02/16/08 00:35
02/16/08 00:35
Joined: Feb 2008
Posts: 19
D
Devman Offline OP
Newbie
Devman  Offline OP
Newbie
D

Joined: Feb 2008
Posts: 19
okay, now I know somethings wrong. Its still displaying the SAME picture when I run. I have no other tabs open, and not even the same model! Let me make a new script and see if that one is corrupt...

Re: level_load [Re: Devman] #184148
02/16/08 00:36
02/16/08 00:36
Joined: Feb 2008
Posts: 19
D
Devman Offline OP
Newbie
Devman  Offline OP
Newbie
D

Joined: Feb 2008
Posts: 19
I'm getting frustrated now. The window just opens and closes instantly. This is really annoying...

Re: level_load [Re: Devman] #184149
02/16/08 00:43
02/16/08 00:43
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Can you try adding -diag to the engine command window. This will create a log inside the same directory as the current script you are running. Inside (acklog.txt) you can find some hints about the problem? Your system is up to date Windows? DirectX9, videocard drivers?


smile
Re: level_load [Re: D3D] #184150
02/16/08 00:52
02/16/08 00:52
Joined: Feb 2008
Posts: 19
D
Devman Offline OP
Newbie
Devman  Offline OP
Newbie
D

Joined: Feb 2008
Posts: 19
ah, it looks like it needs a level. it says:
Malfunction W1517: lite-C - no level!
lite-C - no level! - any key to abort
Program aborted

So what should I do?

I'm using your code, so I'm not sure that the pragrama code is working poperly, as I'm not using game studio, just lite-c. So, should I try to add a black level?

Re: level_load [Re: Devman] #184151
02/16/08 00:53
02/16/08 00:53
Joined: Feb 2008
Posts: 19
D
Devman Offline OP
Newbie
Devman  Offline OP
Newbie
D

Joined: Feb 2008
Posts: 19
So when I put in my hmp file, did it consider that a "level"?

Re: level_load [Re: Devman] #184152
02/16/08 00:56
02/16/08 00:56
Joined: Feb 2008
Posts: 19
D
Devman Offline OP
Newbie
Devman  Offline OP
Newbie
D

Joined: Feb 2008
Posts: 19
Wait, I just saw that command you put it, level_load(NULL). So why does it still want a level?

Page 2 of 3 1 2 3

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1