Resource Files in A5....?

Posted By: TeutonicDarkness

Resource Files in A5....? - 11/15/06 21:54

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 ***
Posted By: FBL

Re: Resource Files in A5....? - 11/15/06 23:30

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

Re: Resource Files in A5....? - 11/15/06 23:42

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 ***
Posted By: TeutonicDarkness

Re: Resource Files in A5....? - 11/16/06 01:11

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 ***
Posted By: FBL

Re: Resource Files in A5....? - 11/16/06 07:46

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.
© 2024 lite-C Forums