Gamestudio Links
Zorro Links
Newest Posts
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
M1 Oversampling
by 11honza11. 04/30/24 08:16
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (dr_panther, AndrewAMD, Ayumi, TedMar), 1,033 guests, and 2 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
Resource Files in A5....? #98819
11/15/06 21:54
11/15/06 21:54
Joined: Mar 2005
Posts: 725
USA
TeutonicDarkness Offline OP
User
TeutonicDarkness  Offline OP
User

Joined: Mar 2005
Posts: 725
USA
Hello,


First of all my question is what is the limit of # of actions
you can have in A5?

I remember reading that there is a limit to number of actions that
can be used; however also reading that this limit can
be passed by using .wrs files.



Since I own A5 Pro now this is a good option for me..


My next question is When I create a .WRS files what are
the specifications?

I want to wrap up some scripts into .wrs files so
Can I just make a seperate .wdl files
and just simply call:


bind <filename>;
bind <filename>;

And attach it to my level or does this binding .wdl
need to have all the info a regualr .wdl does
like:

function main()


I really hope not because Having repeated functions called
in a .wdl file embedded in a .wrs files....

well could come back to bite me later.



Any more insight on .WRS files would be appreciated.




Thanks,


*** Teutonic Darkness ***

Re: Resource Files in A5....? [Re: TeutonicDarkness] #98820
11/15/06 23:30
11/15/06 23:30
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
the binding wdl needs to be attached to an empty level and bind <...>; all over is just fine.

Re: Resource Files in A5....? [Re: FBL] #98821
11/15/06 23:42
11/15/06 23:42
Joined: Mar 2005
Posts: 725
USA
TeutonicDarkness Offline OP
User
TeutonicDarkness  Offline OP
User

Joined: Mar 2005
Posts: 725
USA
Quote:

the binding wdl needs to be attached to an empty level and bind <...>; all over is just fine.




Thanks Fireball,


I have been having a time getting this to work...


I have a 1 block level with a test.wdl attached

Inside test.wdl is this:


bind <gates.wdl>; //

Thats it....
( just want to resource my Scripts for later use)


Inside wed I click Resource It generated the .cd
inside is the test .wrs wich I now include
in an actual level.

path "my_wrs"; // placed the file here and in project directory
RESOURCE "gates.wrs"; // the resourced file

For whatever reason I can get it to read the .WRS files...
supposing I created it correctly...



*** Teutonic Darkness ***

Re: Resource Files in A5....? [Re: FBL] #98822
11/16/06 01:11
11/16/06 01:11
Joined: Mar 2005
Posts: 725
USA
TeutonicDarkness Offline OP
User
TeutonicDarkness  Offline OP
User

Joined: Mar 2005
Posts: 725
USA
Well I figured it out..


knowwhere in my A5 manual did it say you
had to include the .wdl file after
calling the .wrs


Here how I had to set up my main.wdl :

RESOURCE "gates.wrs"; // a possible resource
include <gates.wdl>;

( I was under the naive assumtion that just including
the .wrs file the engine auto included the .wdl at runtime)


Now it works great!
I only hate that you cant use .wrs files from
another directory...


They wont work if not in Project directory.


But I guess a ok trade of having several encrypted,compreesed
files that may be re-usable for me later.


*** Teutonic Darkness ***

Re: Resource Files in A5....? [Re: TeutonicDarkness] #98823
11/16/06 07:46
11/16/06 07:46
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Of course you have to include the wdl file, otherwise it's not used.
If you resource models they are not automatically loaded either, so taht's normal behaviour.


Moderated by  HeelX 

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