Gamestudio Links
Zorro Links
Newest Posts
zorro license, IB connection
by AndrewAMD. 12/06/23 17:16
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
5 registered members (AndrewAMD, miwok, TipmyPip, 3run, 1 invisible), 631 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 3 1 2 3
Re: help on level editor [Re: umphafiz] #263809
05/02/09 13:47
05/02/09 13:47
Joined: Apr 2009
Posts: 298
Southern Oceans
KiwiBoy Offline
Member
KiwiBoy  Offline
Member

Joined: Apr 2009
Posts: 298
Southern Oceans
Ok, so I take it you havnt read the manual.
What you need to do is add the working script to your level.
In 'file', 'map properties' you will find a popup where you can add the script.
Cjoose the folder icon then select your script then save.
Now, if you find the behavior tab and choose 'Behavior', you should be able to select whatever behavior your script file holds, choose the player related one then buid the level and test.
Do read the manual.


Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage
Re: help on level editor [Re: umphafiz] #263895
05/02/09 22:23
05/02/09 22:23
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

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

To be able to see the action you will have to
attach the script to the level.

Files ....> Map properties....>add your script from the folder.

Only entities have a behavior.

Hope this helps.

too late smile

Ottawa smile

Last edited by Ottawa; 05/02/09 22:25.
Re: help on level editor [Re: Ottawa] #264090
05/04/09 09:48
05/04/09 09:48
Joined: Apr 2009
Posts: 18
U
umphafiz Offline OP
Newbie
umphafiz  Offline OP
Newbie
U

Joined: Apr 2009
Posts: 18
hi ottawa,

your help is really right on target. well, now i am successful to model my tx and rx.however, i am stuck at the next point.

there are certain variables that tx_action chooses which i have defined in another file. how can i add all script files so that it is visible to my wed file? (i have elaborated this point below)


how can i add number of script files which contain certain functions of the ray-tracer? do i just need to put in the current directory or what else?For instance, when the tx sends rays to rx, there is a function, follow_path, how can i tell wed file to know about this function?


by the way, which tutorial are you referring to? I read the whole tutorial on WED you earlier told me.
asif

Last edited by umphafiz; 05/04/09 09:55.
Re: help on level editor [Re: umphafiz] #264177
05/04/09 19:29
05/04/09 19:29
Joined: Apr 2009
Posts: 298
Southern Oceans
KiwiBoy Offline
Member
KiwiBoy  Offline
Member

Joined: Apr 2009
Posts: 298
Southern Oceans
The function must be inside an existing script or added to an existing script that is currently being used by the engine, e.g. function main to start the level and the actions and functions preceeding or following ;main.
other wise, you need to 'include' the script to the project first in order to access it.
The engine will not read anything it is not told to read vis include statements or appended to existing script.

Hope that doesnt confuse.


Use the 'manual' Luke, the manual is your friend. 'Self reminder' smile

My WebPage
Re: help on level editor [Re: KiwiBoy] #264195
05/04/09 23:59
05/04/09 23:59
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

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

Like KiwiBoy says all scripts must be available to your game.

Also :
Giving a name to your entities gives you a lot of power.
Code:
action tx_action ()
{
ent_tx = my;
wait (1);
.....


The action starts your entity mouvements and the functions
follow the tread that you establish.


Ottawa smile

Re: help on level editor [Re: Ottawa] #264287
05/05/09 12:58
05/05/09 12:58
Joined: Apr 2009
Posts: 18
U
umphafiz Offline OP
Newbie
umphafiz  Offline OP
Newbie
U

Joined: Apr 2009
Posts: 18
hi ottawa and kiwiboy,

thank you so much for your prompt help!

i am done with my program. and it is perfectly simulating as ray tracer. special thanks must go to u guys!

asif

Re: help on level editor [Re: umphafiz] #264371
05/05/09 22:35
05/05/09 22:35
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

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

Anytime smile

Ottawa

Re: help on level editor [Re: Ottawa] #265469
05/12/09 16:13
05/12/09 16:13
Joined: Apr 2009
Posts: 18
U
umphafiz Offline OP
Newbie
umphafiz  Offline OP
Newbie
U

Joined: Apr 2009
Posts: 18
hello brother,

i have a room which contains a transmitter(laptop..entity) and a receiver (also entity). i wrote a script program which acts as a ray-tracer and outputs the traveled distance of each ray, number of bounces per ray because of reflection etc., pan and tilt of received ray at the receiver.

now i want this program to put two directional antennas on the transmitter and one directional antenna on the receiver to make 2 x 1 system.

1. how can i define the directional antenna so that i know that it is looking toward receiver?
2. how can i define two antennas so that each ray is transmitted from both antenna (redundant data) and moves toward receiver?

P.S: how can i attach a file if i want to send it to you?

cheerz,
asif

Re: help on level editor [Re: umphafiz] #265907
05/14/09 23:38
05/14/09 23:38
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi Asif smile

Yes models have a behavior tab...and to see the action that
you wrote in SED...the level must be linked to that file in WED .

In WED : Files ....Map properties...."Choose your script...main.c"

Then you should see the action for your model. smile

My suggestion is to take a little more time and go thought the tutorials.

If you have #include <default.c> at the beginning of your main.c file
you should be able to move around if you press zero once your in your game.

Ottawa smile

Re: help on level editor [Re: Ottawa] #267029
05/21/09 14:30
05/21/09 14:30
Joined: Apr 2009
Posts: 18
U
umphafiz Offline OP
Newbie
umphafiz  Offline OP
Newbie
U

Joined: Apr 2009
Posts: 18
hi ottawa smile

thanks for your response. however, i had asked something different which is now resolved.

next, in my ray-tracing program, i implemented reflection phenomenon and ignored refraction etc. now i want to add this feature as well. i can do programming part (scripting). however, i am confused how i will handle two rays. let me explain it in a bit detail.

currently, there is a function (follow_path) in my script file which keeps track of a ray until it reaches receiver or lost by taking into account reflection.Now, if i introduce refraction, there will be two rays if a ray hits some glass material (one reflected and one refracted) and both should be tracked correctly. the reflected is already being tracked. how can i track refracted ray once i calculate it. i am thinking the program tracks only single for any given time so how will it handle this issue.

i hope i have clarified my question, if not, i can send you my function if you lemme know how to attach a file here in this forum.

cheerz
asif

Page 2 of 3 1 2 3

Moderated by  HeelX, rvL_eXile 

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