Home   Help Search Login Register  

Author Topic: Drop[] Wizard  (Read 2770 times)

0 Members and 2 Guests are viewing this topic.

Bluelikeu

  • Guest
Drop[] Wizard
« on: 16 Jun 2005, 00:01:25 »
Hello all,

I Was just wondering if such a program existed? If not, I was thinking about doing one.

Thanks,
Bluelikeu

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Drop[] Wizard
« Reply #1 on: 16 Jun 2005, 00:20:48 »
I know a little about a lot, and a lot about a little.

Bluelikeu

  • Guest
Re:Drop[] Wizard
« Reply #2 on: 16 Jun 2005, 00:27:52 »
Accually, I meant more like one that you run outside the game.

Basically would allow someone who does not have much experience with the drop command to create what they want more easily. Lets you choose the color and all the rest of the options such as the velocity. It would then compile the data and then spit out the command.
« Last Edit: 16 Jun 2005, 00:30:20 by Bluelikeu »

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Drop[] Wizard
« Reply #3 on: 16 Jun 2005, 00:31:38 »
Nope, I've never seen one that runs outside of the game.   ;D



Planck
I know a little about a lot, and a lot about a little.

Grendel

  • Guest
Re:Drop[] Wizard
« Reply #4 on: 16 Jun 2005, 00:33:47 »
It might make things a little clearer for those that are new to the drop[] syntax...after a while though you don't see an array anymore.  All I see now is blond....brunette....redhead  :P

-Grendel

Bluelikeu

  • Guest
Re:Drop[] Wizard
« Reply #5 on: 16 Jun 2005, 00:41:32 »
ok, good...
I'll have it done by 5 AM
right now its 2:31 AM

my life is sad :'(

Bluelikeu

  • Guest
Re:Drop[] Wizard
« Reply #6 on: 16 Jun 2005, 15:05:03 »
Ok its done, although a bit late, I fell asleep before completing it.

Here's the program, however, i'm not exactly sure of some of the commands. So I would be so grateful if someone could sift through the wizard and check to see if any of the syntax is wrong. There were some parts of the drop command that I myself was not too sure about. Any assistance will get YOU in the credits too.

Thanks,
Bluelikeu

PS: I didn't have the color choosing option yet, because I'm still trying to understand why BIS used a range of 0-1 instead of the standard 0-255 color range.
« Last Edit: 16 Jun 2005, 15:07:25 by Bluelikeu »

Offline Pilot

  • Contributing Member
  • **
Re:Drop[] Wizard
« Reply #7 on: 16 Jun 2005, 16:27:50 »
Uhh, forgive me if I am an idiot, but...how does one run this program? :-[  I extracted the contents to a folder and double-clicked the .bat file.  Nothing happened.  Could you give some directions on how to use this program for those of us who are idiots with programing?

As for the color, I think I can answer that:

IIRC there are 4 numbers in the color array:
[0,0,0,0]
The first three are ratios of Red, Green, and Blue.  The 4th number is the transparency setting

The colors are ratios of each other.  Values of 1,1,1 would yield white, as would .1,.1,.1.  Now, I would assume that .1,.1,.1 would be darker than 1,1,1, but I am not too sure about that.  1,0,0 would yield Red, 0,1,0 would yield Green, 0,0,1 would yield Blue.

The fourth digit, as I said earlier, defines the transparency.  I don't know how the scale goes, if 1 is transparent or if 0 is transparent.  It's either one or the other ::), with decimals being different levels of transparency

I hope that clears it up some.

-Student Pilot
« Last Edit: 16 Jun 2005, 16:29:47 by Student Pilot »

Bluelikeu

  • Guest
Re:Drop[] Wizard
« Reply #8 on: 16 Jun 2005, 16:48:17 »
ok, can you click edit on the .bat file and delete the @ symbols. Only the @ symbols.

Then run the program again and tell me if there are any errors.

if no erros appear, then swap it with the attached batch file.

About the color. Since java uses the 255 values for each color level, I'm not certain as to how accurate the scale is. All I know is that it should be 255:1.
Also, It seems to me that the OFP color for the drop command only changes the RPGA intensities of the given partical, so the color might look different from that of what can be recreated in java.
« Last Edit: 16 Jun 2005, 16:49:01 by Bluelikeu »

Offline Pilot

  • Contributing Member
  • **
Re:Drop[] Wizard
« Reply #9 on: 16 Jun 2005, 16:55:11 »
Quote
Also, It seems to me that the OFP color for the drop command only changes the RPGA intensities of the given partical
AFAIK that is exactly what OFP does.  I think that is what I was trying to say, I just didn't do so well saying it. ::)

I tried the new batch file, and nothing happened.  I opened it up and added a pause command (see, I know something ::)), here is the error message:
' java' is not recognized as an internal or external command, operable command or batch file.

-Student Pilot

Bluelikeu

  • Guest
Re:Drop[] Wizard
« Reply #10 on: 16 Jun 2005, 16:59:07 »
i see...., just as a question, do you have Java installed?
This always happens to me..., I get the program working and it doesn't work. It seems to run on my PC ok, i guess its because I have the SDK instead of just the RTE.

It should work, I don't have the SDK installed on my other computer and it runs fine.

Offline Pilot

  • Contributing Member
  • **
Re:Drop[] Wizard
« Reply #11 on: 16 Jun 2005, 17:07:22 »
Java? ??? ::)

Uhhh, let me see

*Starts search on computer*

Uhh, I honestly have no idea, which probably means I don't have it.

Do you know where I can get it?

-Student Pilot

Bluelikeu

  • Guest
Re:Drop[] Wizard
« Reply #12 on: 16 Jun 2005, 17:56:19 »
http://www.java.com/en/download/download_the_latest.jsp

if after you click the download button, and it says you've go the latest version, then i need to fix my stuff.

after you click download it will probably ask you dl some components, dl them.
« Last Edit: 16 Jun 2005, 17:57:29 by Bluelikeu »

Offline Pilot

  • Contributing Member
  • **
Re:Drop[] Wizard
« Reply #13 on: 16 Jun 2005, 18:18:41 »
Thanks, Bluelikeu

It appears I don't have the latest version, so I have to download it.  That will take a while, as I'm still on dial-up.

-Student Pilot

Bluelikeu

  • Guest
Re:Drop[] Wizard
« Reply #14 on: 16 Jun 2005, 18:22:00 »
no problem, i'll be around all day

Offline Fragorl

  • Coding Team
  • Former Staff
  • ****
Re:Drop[] Wizard
« Reply #15 on: 17 Jun 2005, 02:57:47 »
Just tried the program. So, basically you enter input that you're prompted for, and the program spits out the command. This would be helpful for someone who was completely new and confused about the drop[] command. For others, I would say it has limited usefulness.

Couple of suggestions and comments

1.) Call focus to the text field each time you change the panel around/add new stuff. Saves the user constantly reclicking on the text field each time.

2.) The 'help' section which follows each category is probably the most useful part of the program. You need to do some more work on this. Here are some notes you could use in the 'help' section, about drop[]:

- Animation name: I think this depends on the type of object you drop, if you use a spaceObject. Then the animation relates to the dropped model.

- Weight and volume: these combined factors determine whether the object *accelerates* up, down, or not at all. ie they define the balance between upthrust and weight. (Seems an odd way to do it, but that's what they decided). From memory, a ratio of ~1.2 weight to 1 volume produces 0 acceleration. Note that this is the ONLY way to change the velocity of the drop particle (someone please correct me if i'm wrong, but i think the particle is outside all influences once it has been created). I also think that volume determines the object's size in some part, in addition to the size[] array.

- Rubbing: this is how much the particle is affected by the wind. Sample input for this is between 0 and 1. I find that 0.08-0.1 is a good, moderate effect for smoke and fire.

- Color- you do mention this in the help text, but i would emphasize it: you can have as many RGBA arrays in here as you like; you can have 2 or 20. They are all linearly interpolated, and there is no way to change this which is a bummer. Linearly interpolated just means that the transit time between two colors is always the same.

- Animation phase: An educated guess, but I think this is how drop particles animate in terms of the ratio of frames in the animation. For example, using the array [0,1] will cause the particle to do one complete animation in it's lifetime. Doing [0,1,0] will cause it to animate once, and then once in reverse order, all in the space of it's lifetime. Using [ 0 ] will cause the particle to stay still in it's beginning frame and [ 1 ] will cause it to stay still in it's end frame. NB: This may be complete rubbish of course; someone will correct me if i'm wrong here.

- Random period and intensity. AFAIK, the 'Random Period' is actually a constant value, ie the particle will always switch directions after this many seconds. So, a misleading name. The random intensity is a non-skewed random value between 0 and whatever you set it as.

- OnTimer - use the parameter 'this' in your script to get the particle's position, not the particle itself. Bit of a bummer that.

- Object: the object to 'attach' the particle to. You can use the name of an object, and then specify a model section in the 'position' section of the drop array instead of an [x,y,z] array. For example 'Hlave' which I think someone said was 'torso'. Don't know much about that. You can use "" to signify no object. (NB you can also use "" to signify no animation, no ontimer or ondestroyed events). In this case the [x,y,z] position is not relative but absolute, like setpos.

3.) Some sort of debugger for the drop array might be useful, since ofp has no debugger aside from the in-game one.
« Last Edit: 17 Jun 2005, 03:08:53 by Fragorl »

Bluelikeu

  • Guest
Re:Drop[] Wizard
« Reply #16 on: 17 Jun 2005, 14:59:25 »
Quote
Just tried the program. So, basically you enter input that you're prompted for, and the program spits out the command.

I'm intending for it to have more options than just a text field

First of all, I'm going to make the steps a bit smaller.
it would be easier to have the steps on 3 pages than 19.
The only problem is that it would be much easier to be able to use Absolute values as my layout, but I wouldn't count on people to download the latest version of java to use it, except maybe Student Pilot.

Second, Choice boxes, just select what common input you want to use. The choice boxes and their selection lists can be changed by editing their respective text files where the lists are. This would make things possibly useful to those who understand the drop[] command

Custom help files, each step will open its respective help file, so that you can read more about it, this can be easily updated by copying text to the help file.

btw, I'm accepting the custom help files now, if anyone wants to submit. Please make them in .txt format.
Comments on one of the drop commands would be placed in the file, and even your description of the command would be usefull.

As you know, there are 18, or 19 elements of the drop command. So I would love to get all of them in.

btw, thanks to Fragorl for his input on the program and for the details about certain commands.

Thanks,
Bluelikeu

Offline Pilot

  • Contributing Member
  • **
Re:Drop[] Wizard
« Reply #17 on: 02 Jul 2005, 03:47:28 »
I tried the wizard a few days ago, and I have to say it is quite nice!  I really like this program as it takes the tediousness out of the drop command.  I will do more with it and possible post a more detailed test later.

Sorry I didn't post earlier.  I downloaded java only a couple of days ago, when I was staying in a hotel with high speed internet ::).

-Student Pilot

Bluelikeu

  • Guest
Re:Drop[] Wizard
« Reply #18 on: 05 Jul 2005, 14:49:13 »
Ok, another proike just recently did something like this, but I intend to make mine a "wizard" :P not Genorator

Thanks,
Bluelikeu