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
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (Ayumi, 7th_zorro, 1 invisible), 1,060 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Adding action in WED #300413
12/02/09 10:38
12/02/09 10:38
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
I can attach an action to an entity in WED.
It appears in the behavior list and all looks good.
When I run the level, however, the screen is black. I have no error messages, just a black screen.
I have tried many different ways of achieving this simple task but it never works.

The puzzling thing is this, I have done this many times correctly but with a version of 3DGS from about 1 year ago.

I would be greatful of any help please

Re: Adding action in WED [Re: dracula] #300570
12/03/09 12:20
12/03/09 12:20
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
Nobody can help ??

Re: Adding action in WED [Re: dracula] #300572
12/03/09 12:26
12/03/09 12:26
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
make sure your script is loading your level, when you run a map that has a script file attached to it from WED, it runs the script.


3333333333
Re: Adding action in WED [Re: Quad] #300628
12/03/09 20:21
12/03/09 20:21
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
Hi Quad,

I am not loading my level, I didn't think you had to ?

When I press the traffic lights in WED I get the black screen
When I 'preview' the map I see the level but the action isn't working.


Here's my work flow:

1. Open WED save new level to a folder.
2. In SED, create a file called test.c and place an action inside it
3. Select Map Properties in WED, select test.c
4. Load entity, attach behavior
5. Build/Run = blank screen.

Where do I load the level ?, I assumed this happens automatically when I run the compiled level (.WMB)

Thanks

Re: Adding action in WED [Re: dracula] #300636
12/03/09 21:23
12/03/09 21:23
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
add this to your test.c

void main(){
level_load("level_name.wmb");
}

so why do you need to that?

Because when you dont attact a script to your map(step 3 in your post), engine works as wmb viewer and shows your level.(just as you double click .wmb file from windows explorer)

but when you have a script attached, wed runs that script, if your script doesnt load your level you won't see it. As in same way, if your script has player spawning or other panels on the screen, they will also show up when you run from wed.

pay attention to these screens:

this is the options you get if you did not selected a script. That runs engine with your level in level viewer mode.


this is the options you get whewn you have a script attached. This runs your script, just like if you started it from SED.


3333333333
Re: Adding action in WED [Re: Quad] #300689
12/04/09 13:20
12/04/09 13:20
Joined: Apr 2008
Posts: 437
dracula Offline OP
Senior Member
dracula  Offline OP
Senior Member

Joined: Apr 2008
Posts: 437
Hi Quad

thank you very much for clarifing this for me

You are a very kind and helpful person

Cheers

Re: Adding action in WED [Re: dracula] #300852
12/05/09 21:55
12/05/09 21:55
Joined: Mar 2007
Posts: 112
MikeS Offline
Member
MikeS  Offline
Member

Joined: Mar 2007
Posts: 112
Hmm, i have nearly the same problem, i attached an action in WED to an entity, defined the action in SED, updated entities in WED, and test run the script.

Now i get the error message, <new action> not found.

So what did i wrong?

The second entity had an action in WED attached, and defined in SED too, and this works really good.

Greetings
Mike

Re: Adding action in WED [Re: MikeS] #300857
12/05/09 23:49
12/05/09 23:49
Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
Nowherebrain Offline
Serious User
Nowherebrain  Offline
Serious User

Joined: Jul 2005
Posts: 1,002
Trier, Deutschland
are your scripts being updated? If you update your scripts, then return to wed it will give you a warning(unless it auto loads via options panel)that files have changed....make sure they are reloaded, then rebuild. This could be something else entirely though.


Everybody Poops.
here are some tutorials I made.
http://www.acknexturk.com/blender/
Re: Adding action in WED [Re: Nowherebrain] #300883
12/06/09 15:46
12/06/09 15:46
Joined: Mar 2007
Posts: 112
MikeS Offline
Member
MikeS  Offline
Member

Joined: Mar 2007
Posts: 112
hmm,maybe thats the reason.but how do i update the script? I just only save it...

Greetings Mike

Re: Adding action in WED [Re: MikeS] #300886
12/06/09 16:24
12/06/09 16:24
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

Is this what your looking for?

In WED
preferences
common options
reload of externally modified files


Hope this helps!
Ottawa laugh

Ver 7.86.2 Pro and Lite-C
Page 1 of 2 1 2

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