Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,310 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 3 1 2 3
Re: level_load [Re: Devman] #184153
02/16/08 01:05
02/16/08 01:05
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
You can remove pragma_path from the script and place cube.mdl inside the same directory as your script.

With level the engine expect a WMB file not hmp or mdl. This is not always required though Lite-C doesn't have WED so it make little sense. That is why I set it to NULL. (You can load WMB files with Lite-C). This should work without message after you comment out pragma_path.


smile
Re: level_load [Re: Devman] #184154
02/16/08 01:13
02/16/08 01:13
Joined: Feb 2008
Posts: 19
D
Devman Offline OP
Newbie
Devman  Offline OP
Newbie
D

Joined: Feb 2008
Posts: 19
HAHA! I seemed to have fixed it. You put NULL under level_load, when a blank level should be "". I then tweeked the code to insert my model, and voila! The program is complete!

Re: level_load [Re: Devman] #184155
02/16/08 01:17
02/16/08 01:17
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Guess Lite-C is not updated yet. You can set it to NULL in A7.07.5+

If you don't have a level_load function at all you will get this message again. So in the case you are not going to use a level WMB, make sure you set it to NULL. NULL means nothing and "" is a empty string.


smile
Re: level_load [Re: D3D] #184156
02/16/08 01:18
02/16/08 01:18
Joined: Feb 2008
Posts: 19
D
Devman Offline OP
Newbie
Devman  Offline OP
Newbie
D

Joined: Feb 2008
Posts: 19
okay, thanks for all the help.

Re: level_load [Re: Devman] #184157
02/16/08 04:24
02/16/08 04:24
Joined: Feb 2008
Posts: 19
D
Devman Offline OP
Newbie
Devman  Offline OP
Newbie
D

Joined: Feb 2008
Posts: 19
I'm just about to give up now. Whenever I make a new project, write my code, then compile it, it on;y runs if the program works. If it has errors, then it tells me, and closes. When I "fix" them, then run it again, it just shows me a distorted picture of some sort, usually of the last program ran or of my desktop. I can't use this if it never compiles right. Either this is SUPER buggy software, or there is something horrible wrong with the default preferences.

Re: level_load [Re: Devman] #184158
02/16/08 18:44
02/16/08 18:44
Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
Tobias Offline

Moderator
Tobias  Offline

Moderator

Joined: Aug 2000
Posts: 1,140
Baunatal, Germany
You can not run a faulty code. You must fix your code before you can compile and run it. Hope this helps.

You need to learn a language before you can use it, we all made that experience. For learning lite-c download the workshops, they explain everything you need for the beginning.

Re: level_load [Re: Tobias] #184159
02/16/08 19:27
02/16/08 19:27
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
If there was something wrong with the software, forums would be posted to the max with a lot of angry people. My guess is your hardware or operating system. Would like to know what your using to get things running.


smile
Re: level_load [Re: D3D] #184160
02/16/08 21:39
02/16/08 21:39
Joined: Feb 2008
Posts: 19
D
Devman Offline OP
Newbie
Devman  Offline OP
Newbie
D

Joined: Feb 2008
Posts: 19
your right, I just get frustrated with the totally un-helpful error reports. It does only work when its all right. Thanks for help again, I'm okay now...

Re: level_load [Re: D3D] #184161
02/16/08 21:59
02/16/08 21:59
Joined: Dec 2006
Posts: 78
Nevada, USA
Futurulus Offline
Junior Member
Futurulus  Offline
Junior Member

Joined: Dec 2006
Posts: 78
Nevada, USA
There are still a few minor bugs with SED and Lite-C, but most of them don't matter that much (e.g. local variables don't show up in the "code jumper"). There are, however, many things you can do to keep the coding process going smoothly. Here are a few that I have to remind myself of every now and then:

-- Options>Preferences>Environment tab>Use the current file for Test Run should be checked. I think you already have this set, but I can't quite tell from your responses to D3D's queries.

-- Never use Debug Run (red arrow) if Test Run (black arrow) will do. In Debug mode, any errors in your script will crash SED.

-- Save all necessary scripts, then wait a few seconds before testing. Sometimes the engine needs time to "catch up" with your hard drive.

-- Legacy mode is hard to read and not usually necessary. Unless you really need low-level DirectX stuff, just include <acknex.h> and <default.c> and go. This may be the reason for your program just showing the background: litec.h has created a window, but your script doesn't tell the window to do anything, so it just copies what's already there.

-- The more advanced features you use right off the bat, the greater the chance one of them "won't work" because you overlooked something small. Legacy mode and .X files are among these features.

Hope I didn't sound rude; all of these things used to annoy me, but I learned to work around them.

Page 3 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