Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
5 registered members (Dico, AndrewAMD, TipmyPip, NewbieZorro, Grant), 15,253 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
level_load #184133
02/15/08 22:55
02/15/08 22:55
Joined: Feb 2008
Posts: 19
D
Devman Offline OP
Newbie
Devman  Offline OP
Newbie
D

Joined: Feb 2008
Posts: 19
I'm sorry for posting about such a easy topic, I really am. You see, I have a problem getting a level to load, because of a "undefined parameter". Here is the (very small) code.

#include <litec.h>
#include <d3d9.h>

int main()
{
level_load("terrain_1.hmp");
wait(10);
}

I can't figure it out

Any help?

Re: level_load [Re: Devman] #184134
02/15/08 22:59
02/15/08 22:59
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Try with #include <acknex.h> are you planning on using Lite-C pure or legacy mode?


smile
Re: level_load [Re: Devman] #184135
02/15/08 23:00
02/15/08 23:00
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Engine functions, like level_load() are defined in acknex.h, so: #include <acknex.h>.

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

Joined: Feb 2008
Posts: 19
Actully, what did it was the #include <default.c>. Are Default.c and acknex.c the same thing? Thanks for the 3 min. response =P

Just tried it. acknex makes it work to.

Last edited by Devman; 02/15/08 23:04.
Re: level_load [Re: Devman] #184137
02/15/08 23:15
02/15/08 23:15
Joined: Feb 2008
Posts: 19
D
Devman Offline OP
Newbie
Devman  Offline OP
Newbie
D

Joined: Feb 2008
Posts: 19
Okay, sorry to bother you again, but I need more help. I looked at the workshop and read the documentation, but this one puzzles me. When I run the program, it just pops up and closes right away. No errors. Nothing.

#include <litec.h>
#include <acknex.h>

int main()
{
ent_create("H-SWAT-Idle.x",vector(100,-50,0),NULL);
wait(-30);
}

Thanks in advance.

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

Joined: Feb 2008
Posts: 19
Okay, I put the wait() function into the NULL space, and the window stays. However, its displaying the terrain from the earlier example...

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

Joined: Apr 2006
Posts: 1,551
Netherlands
Not really sure if you can load .x files (perhaps it is possible?). You can do it in MED, but anyways the reason that your previous script is loading could be due to the fact that you have it set in the Preferences window.


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

Joined: Feb 2008
Posts: 19
Okay, I am so confused. I viewed the model in the direct x viwer, to make sure it wasn't corrupt. However, now when I run the program It shows a distorted screen shot of the direct x viewer and the model plus a little bit of the task bar. Is this some sort of bug, or is it something I'm doing?

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

Joined: Apr 2006
Posts: 1,551
Netherlands
Don't know can't see what your seeing. Anyways try to import the .x file inside MED and save it as mdl or hmp for terrain/water if needed. Then load it into the engine. Do you have a special reason for using legacy mode? Personally I think pure mode is easier as it looks lot like C-Script. Why the -30 wait btw?


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

Joined: Feb 2008
Posts: 19
I tried to import it into MED, but it kept asking for a bmp that I didn't have. As for the other question about legacy, I switched over to acknex, although I don't think thats the problem here.

Page 1 of 3 1 2 3

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

Gamestudio download | 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