Effect #9 Glow Pulse |
The Black Wyrm's Lair Terms of Use | Help Search Members Calendar |
Effect #9 Glow Pulse |
Mar 7 2007, 04:46 PM
Post
#1
|
|
GOD Retired team member Posts: 1728 Joined: 14-July 04 From: Ireland |
I can never seem to get this to work without copying another glow effect from an existing item...this time i want to try other colours than gold!
Basically the Effect says: QUOTE Pulses the area specified by the 'Location and Speed' field, at the rate specified by the 'Location and Speed' field, with the colour specified by the 'RGB colour' field. The 'RGB Colour' field is handled as follows: Second byte = Red (0-255) Third byte = Green (0-255) Fourth byte = Blue (0-255) The 'Location' field is handled as follows: First byte = Location Third byte = Speed (0-255) A speed of 0 does not pulsate. A speed of 1 is fastest, and a speed of 255 is slowest. Known values for 'Location' are: 00 Belt Buckle (on armor) or amulets (on robes) 01 Minor colour 02 Major colour 03 Skin colour...etc The problem I have is that if I put Location 03 and Speed 0 together in the Location field then DLTECP resolves this to 30 and when "Checking" it says the effect is invalid...and i get no glow ingame. In the item with the gold glow that gives no errors the Location/Speed field has this number 25559045. How it comes to this from a possible 3 digit (255) and 2 digit number (location 02,04 etc) is beyond me. |
|
|
Mar 7 2007, 05:15 PM
Post
#2
|
|
Forum Member Posts: 80 Joined: 18-August 06 |
Use NI, and you won't have to do any additional thinking on what byte means what.
Attached File(s)
|
|
|
Mar 7 2007, 05:32 PM
Post
#3
|
|
GOD Retired team member Posts: 1728 Joined: 14-July 04 From: Ireland |
How do I know what colour I'm using?
Is there a chart somewhere with the red/green/blue settings for various colours? It's funny, in colour DLTCEP is so much easier but not in Location/Speed and its the other way around for NI! |
|
|
Mar 7 2007, 05:43 PM
Post
#4
|
|
GOD Retired team member Posts: 1728 Joined: 14-July 04 From: Ireland |
This website helped: http://www.pitt.edu/~nisg/cis/web/cgi/rgb.html
|
|
|
Mar 7 2007, 05:43 PM
Post
#5
|
|
Forum Member Posts: 80 Joined: 18-August 06 |
Every graphic editor has such chart, including MS Paint. You can pick desired color there, then switch back into NI and input R/G/B values.
|
|
|
Mar 7 2007, 07:56 PM
Post
#6
|
|
IESDP Guardian Forum Member Posts: 175 Joined: 22-July 04 |
Rabain: It sounds like you have the parameter values showing as dword values (i.e. a single value), when you want them to be shown as byte values (for this effect at least).
Try the 'Explode' buttons. -------------------- Visit the IESDP https://gibberlings3.github.io/iesdp/
|
|
|
Mar 7 2007, 08:00 PM
Post
#7
|
|
GOD Retired team member Posts: 1728 Joined: 14-July 04 From: Ireland |
Thanks, that works fine for the colour field...however the Location and Speed field isn't changed by any of the buttons (Explode/Undefined/IDS/Colour/Damage).
If I understood how the system was making this value I might be able to make an attempt at understanding...maybe. |
|
|
Mar 7 2007, 09:31 PM
Post
#8
|
|
IESDP Guardian Forum Member Posts: 175 Joined: 22-July 04 |
There are two explode buttons (one next to param1, one next to param2). If pressing the button does nothing, I'd say it's a DLTCEP bug (it works fine here btw) - what version are you using?
The way the system generates the value: The parameter fields are stored as dwords (double words), where a word is 2 bytes, therefore a parameter is 4 bytes. The explode button show the parameter field as the 4 individual bytes, the imploe button shows the parameter as a single 4 byte field. The number the parameter represents is the same whether the field is treated as a dword or 4 bytes, it's like saying 1234 represents 1234 and the values, 1,2,3 and 4. -------------------- Visit the IESDP https://gibberlings3.github.io/iesdp/
|
|
|
Mar 8 2007, 12:33 AM
Post
#9
|
|
GOD Retired team member Posts: 1728 Joined: 14-July 04 From: Ireland |
Heh...why did i not see that Explode button?
Sorted...thanks! |
|
|
Apr 3 2007, 06:47 PM
Post
#10
|
|
Forum Member Posts: 78 Joined: 13-July 05 |
Actually dltcep should use a default field size for each opcode, but i never gotten around to work it out. (Which is a shame, since the original IEEP had it).
However, I believe DLTCEP is still more usable for this particular effect than NI. -------------------- See GemRB !
|
|
|
Lo-Fi Version | Time is now: 19th May 2024 - 07:36 AM |