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
1 registered members (TipmyPip), 18,513 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 will not run after compiling #224906
09/01/08 21:14
09/01/08 21:14
Joined: Sep 2008
Posts: 11
Leon_Kennedy Offline OP
Newbie
Leon_Kennedy  Offline OP
Newbie

Joined: Sep 2008
Posts: 11
Good afternoon all! I apologize in advance if this question has already been asked and answered.

I am new to GameStudio, as well as creating games. I have GameStudio Pro 7.05/WED v6.8291. I am working through the tutorial that is posted on the web, and I get to the part about compiling and running the level (well, the house, but go with me on this). So I compile the level just fine, and then I attempt to run it. When I click the "run" button, I get a screen with the following information in it:

first.wmb -nx 30

First is the name of the project, and I understand the nexus switch with 30 mb. So I click ok, and watch it.... not run. What? When I attempt to run the level, it looks as if the engine is going to produce a window with my level in it, but the window closes almost immediately.

Looking at the tutorial, it says that some people may have problems, and to set the Video Out to GXLBASE.DLL. I tried that, and I get the same thing - it appears that it will run, but the window closes immediately.

Here is what I have tried so far:

Running without the nexus switch
Changing the video out to EVERY option available
Adding a light source (even though the tutorial doesn't state to add one)

Can someone help me here? I love the ease of WED, and am a C programmer by trade (meaning that Lite-C should be a breeze for me when I get that far). I can't wait to get some of these ideas out of my head, but I can't get past this part. Does anyone have any ideas as to why I cannot get the level to run?

Re: Level will not run after compiling [Re: Leon_Kennedy] #224931
09/02/08 00:59
09/02/08 00:59
Joined: Jul 2008
Posts: 43
A
Angelus1818 Offline
Newbie
Angelus1818  Offline
Newbie
A

Joined: Jul 2008
Posts: 43
I'm having the exact same problem! I even posted it here! (Not flaming you for posting to) Anyway I belive i know the answer!!!

You need to assighn a script to it from SED. I don't know what or how but thats the prob. Ask jpextreme on the forums here. He's actually going to write a PDF for me on how to do this...i think I would hold out for that, unless someone knows whats going on here, i'm shooting in the dark.

Good luck to you and if someone knows a fix please share!!!!!

:shock:

You have the forbidden copy of Gamesudio!!!!

Did..you..pay for it? sorry 7.05 was the beta version on the P2P network, that could very much be your problem as well as it's very buggy!!!! If you did pay email Conitech and ask for a real copy, they'll be glad to help if your legit. However i do not recommend talking to them if you got through a Torrent!!!!

Sorry to be so forward here....I'm really sorry to acuse of that it's just suspicious when someone has a 7.05 edition is all. My apologize in advance.

Last edited by Angelus1818; 09/02/08 01:07.
Re: Level will not run after compiling [Re: Angelus1818] #224934
09/02/08 01:22
09/02/08 01:22
Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
cro_games Offline
User
cro_games  Offline
User

Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
Try to create "game.c" file in the same folder as the level file and add this code to it:

Code:
#include <acknex.h>
#include <default.c>

function main()
{
level_load("first.wmb");
wait(3);
}


p.s.
Run level from SED.


Hello everyone my name is Ivan Mandic from "Frozen pixel studio". wink
-----------------------------------
Homepage: www.fpx-studio.com
e-mail: emu_hunter_1990@hotmail.com
(working on a game engine)
Re: Level will not run after compiling [Re: Leon_Kennedy] #224935
09/02/08 01:38
09/02/08 01:38
Joined: Sep 2008
Posts: 11
Leon_Kennedy Offline OP
Newbie
Leon_Kennedy  Offline OP
Newbie

Joined: Sep 2008
Posts: 11
Thank you so much! I added the script as game.c, set main to that function (in SED), and then ran it in SED. I should be able to continue with building and reviewing my levels now.

Furthermore, I wanted to say that I created an EXE after my initial post, and I could run the EXE and see what I had created (although I had no movement scripts, so I couldn't move around!).

But thank you for the help. That worked! Now I just have to keep SED and WED open at the same time.

Re: Level will not run after compiling [Re: Leon_Kennedy] #224983
09/02/08 12:27
09/02/08 12:27
Joined: Sep 2008
Posts: 11
Leon_Kennedy Offline OP
Newbie
Leon_Kennedy  Offline OP
Newbie

Joined: Sep 2008
Posts: 11
I have one more question on this topic. When I run the level in SED using the provided script, I cannot move around in the level. I know that I have to set a movement script to the level, but the tutorial doesn't talk about that. In fact, the tutorial states that you should be able to move around and look at everything.

How would I set a movement script to the level in WED so that I can actually move around in there? Does the 2nd Game Design tutorial cover this?

Re: Level will not run after compiling [Re: Leon_Kennedy] #225106
09/02/08 20:17
09/02/08 20:17
Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
cro_games Offline
User
cro_games  Offline
User

Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
Np man..
Originally Posted By: Leon_Kennedy
Now I just have to keep SED and WED open at the same time.

You can add script file to the WED, go to:
File->Map Properties


Originally Posted By: Leon_Kennedy
I have one more question on this topic. When I run the level in SED using the provided script, I cannot move around in the level. I know that I have to set a movement script to the level, but the tutorial doesn't talk about that. In fact, the tutorial states that you should be able to move around and look at everything.

How would I set a movement script to the level in WED so that I can actually move around in there?

Add this code in "function main()":
Code:
def_moveset(); // default camera movement


Last edited by cro_games; 09/02/08 20:20.

Hello everyone my name is Ivan Mandic from "Frozen pixel studio". wink
-----------------------------------
Homepage: www.fpx-studio.com
e-mail: emu_hunter_1990@hotmail.com
(working on a game engine)
Re: Level will not run after compiling [Re: cro_games] #225121
09/02/08 22:12
09/02/08 22:12
Joined: Sep 2008
Posts: 11
Leon_Kennedy Offline OP
Newbie
Leon_Kennedy  Offline OP
Newbie

Joined: Sep 2008
Posts: 11
Added the code to game.c in SED - works brilliantly when running through SED.

Went to File -> Map Properties, and I don't see game.c as an option. I selected the option A6_Template_Project, and now the window loads in WED. But there is still no movement? Do I need to do something in SED to allow WED to see the script I wrote?

Re: Level will not run after compiling [Re: Leon_Kennedy] #225130
09/02/08 23:51
09/02/08 23:51
Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
cro_games Offline
User
cro_games  Offline
User

Joined: Sep 2007
Posts: 761
Hrvatska (Croatia ), Slavonski...
No..You need to add "game.c" to WED:
(Remove that script with "red X" icon and click on "Choose Script"
icon,find and select "game.c")


Last edited by cro_games; 09/02/08 23:54.

Hello everyone my name is Ivan Mandic from "Frozen pixel studio". wink
-----------------------------------
Homepage: www.fpx-studio.com
e-mail: emu_hunter_1990@hotmail.com
(working on a game engine)
Re: Level will not run after compiling [Re: Leon_Kennedy] #225220
09/03/08 11:38
09/03/08 11:38
Joined: Sep 2008
Posts: 11
Leon_Kennedy Offline OP
Newbie
Leon_Kennedy  Offline OP
Newbie

Joined: Sep 2008
Posts: 11
Wow, am I a noob on this. And I am smarter than this - I should have been able to figure that out on my own. Thanks for the advice. I did what you said, and now things work fantastically.

Still have one question, though. When I have first.c (or is it first.wdl?) assigned as the script, I have no movement in WED. However, if I load the script first.c (or is it first.wdl?) in SED and run, I have movement. Why is this? Why would I be able to move in SED but not WED?

EDIT: Thought of another question. Once I am all done with the tutorials and start working on my own games, I am going to modify game.c to state "game_name" instead of "first". So I can then use that script in WED, which is no big deal. But, when I am all done, do I need to change the script over to game_name.c before distribution?

Last edited by Leon_Kennedy; 09/03/08 11:39.
Re: Level will not run after compiling [Re: Leon_Kennedy] #225235
09/03/08 13:50
09/03/08 13:50
Joined: Jul 2008
Posts: 43
A
Angelus1818 Offline
Newbie
Angelus1818  Offline
Newbie
A

Joined: Jul 2008
Posts: 43
Hello,

First off Leon_Kennedy I am so sorry that I accused you of piracy, that was wrong of me. I apologize for it. Also are you on the Silent Walk forums? Or is it just someone with the same username. Someone with your user name just registered there. Thats a fun site, great people, like this one. Well I hope you can forgive me smile

cro_games,

I am having some trouble still making my levels run. I made the script file with the code you provided (with movement code) but in wed it says it fails to load game.c! I assigned it to to WED through the Map Properties so I have no idea whats wrong. All I can think of is that I pasted the movment code inside the () part of the function.main code. Does it go in there the () part or at the very end beside it? This is what my code looks like now:

#include <acknex.h>
#include <default.c>

function main(def_moveset(); // default camera movement)
{
level_load("first.wmb");
wait(3);
}

Notice the line "def_moveset(); // default camera movement" is nestled inside function main's () is this what it should look like?

#include <acknex.h>
#include <default.c>

function main()def_moveset(); // default camera movement
{
level_load("first.wmb");
wait(3);
}

Now notice it's beside it. Which way is correct? Or is either of them correct?
Sorry i'm such a n00b here. Thanks for your help in advance.

And LeonK,

I'm sorry I don't know the answers to your questions frown

Page 1 of 3 1 2 3

Moderated by  HeelX, rvL_eXile 

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