Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
0 registered members (), 10,106 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Loading problem #247161
01/19/09 09:20
01/19/09 09:20
Joined: Dec 2008
Posts: 16
H
HansCzech Offline OP
Newbie
HansCzech  Offline OP
Newbie
H

Joined: Dec 2008
Posts: 16
Hi everybody,
I have another problem... when I give the order to load a level then it always says "main scrpit not found - check preferences".
I don`t know why so please could anyone help me.

Re: Loading problem [Re: HansCzech] #247175
01/19/09 11:32
01/19/09 11:32
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
give an exaple, piece of code, where you call new level


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: Loading problem [Re: Jaxas] #247192
01/19/09 12:44
01/19/09 12:44
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Edit/Preferences, Main script to run/publish = blank.

Re: Loading problem [Re: HansCzech] #247196
01/19/09 13:06
01/19/09 13:06
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
or options/preferences/environment/ and there check box "use the current file for Test Run" wink

Last edited by Jaxas; 01/19/09 13:07.

The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: Loading problem [Re: Jaxas] #247207
01/19/09 13:55
01/19/09 13:55
Joined: Dec 2008
Posts: 16
H
HansCzech Offline OP
Newbie
HansCzech  Offline OP
Newbie
H

Joined: Dec 2008
Posts: 16
Thank you ... now another question...
I made a code, using objects and level from the example... but it doesn`t work. Maybe you see the mistake... it says that it can`t read the line with the car1.

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

///////////////////////////////////////////////////////////////

function main()
{
level_load("roller.wmb");
camera.z =5;
camera.x =4;
camera.y =5;
car = ent_create ("car1.mdl", vector(200, 0, 100), NULL);
}

Re: Loading problem [Re: HansCzech] #247212
01/19/09 14:12
01/19/09 14:12
Joined: Feb 2006
Posts: 385
Oldenburg,Germany
Ralph Offline
Senior Member
Ralph  Offline
Senior Member

Joined: Feb 2006
Posts: 385
Oldenburg,Germany
Are you sure that the car1.mdl is in the same folder like the main script?
And put a wait(3); after you level load.

Re: Loading problem [Re: Ralph] #247215
01/19/09 14:17
01/19/09 14:17
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
before usin "car" you should define it as entity. Example:

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

///////////////////////////////////////////////////////////////

ENTITY* car;

function main()
{
level_load("roller.wmb");
camera.z =5;
camera.x =4;
camera.y =5;
car = ent_create ("car1.mdl", vector(200, 0, 100), NULL);
}


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: Loading problem [Re: Jaxas] #247229
01/19/09 15:31
01/19/09 15:31
Joined: Dec 2008
Posts: 16
H
HansCzech Offline OP
Newbie
HansCzech  Offline OP
Newbie
H

Joined: Dec 2008
Posts: 16
Thank you really much...
Another question... I have created a own level named "untitled.wmb", but when I take this it says that it can`t read it. So where do I have to put it that it can find him? I hope you understand my question and can help me.

Re: Loading problem [Re: HansCzech] #247231
01/19/09 15:48
01/19/09 15:48
Joined: May 2008
Posts: 331
Lithuania, Vilnius
Jaxas Offline
Senior Member
Jaxas  Offline
Senior Member

Joined: May 2008
Posts: 331
Lithuania, Vilnius
hmm, i guess you should first build level if you not alredy done that, all files must be in one folder. That's all.


The smaller the bug, the harder it is to kill.
_________________________________________
Forklift DEMO (3dgs)
Re: Loading problem [Re: Jaxas] #247278
01/19/09 20:26
01/19/09 20:26
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
NEVER EVER call any of your scripts, models, or levels "untitled",
the editors and engine are a but buggy with that name, plus its an
ugly name to use.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Page 1 of 2 1 2

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