2012-02-06, 10:11:56 *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Looking for Video Tutorials? Check out the Open Nod Development section of e-mods.net.

E-Mods.net also has CryEngine tutorials! Check out the Open CryEngine Development section too.

Advanced search
Pages: [1]
Print
Author Topic: Bug  (Read 1773 times)
0 Members and 1 Guest are viewing this topic.
ORI
Team
Member
******

Karma: 1
Offline Offline

Posts: 365


« on: 2007-09-14, 19:05:40 »

My thaumaturgy roll works like this (This is a example of a 2nd level power so difficulty should be 5+ magic resistance if any:
Magic resistance merit is first captured by this line which should take the value of 2 if it exsist (incidently it is also the point cost of Magic resistance so it all should look nice on the character sheet:

   {charcheck: target, store, magicreschk, magic resistance}

The charcheck returns 'Null' for none magic resistance characters as they dont have magic resistance in their character sheet, but when I try to do the following in a roll:

   {rolldice: caster, invoke, <var.caster.castwilpwr>, 5+<var.target.magicreschk>}

Instead I get the result as shown in The Attached image of a roll with 0 difficulty for non magic resistanc characters  .


* Rolling error.JPG (9.26 KB, 525x100 - viewed 83 times.)
Logged
Javokis
Horses Dick
Member
*****

Karma: 0
Offline Offline

Posts: 1898



« Reply #1 on: 2007-09-14, 20:02:44 »

That's because you combined 5+null which returns an error (thus the whole math equation returns 0), this is fixed in 0.3a, but in 0.2a, you're going to have to use {var} to change a null value into 0. In 0.3a {charcheck} will always return 0 if 'not found' thus ending this error problem and the need for an extra step to avoid it.
Logged

"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo
ORI
Team
Member
******

Karma: 1
Offline Offline

Posts: 365


« Reply #2 on: 2007-09-14, 20:17:33 »

ok thanks, thought it might be that but it didnt make much sense since its a + not a *.
Logged
Javokis
Horses Dick
Member
*****

Karma: 0
Offline Offline

Posts: 1898



« Reply #3 on: 2007-09-17, 06:08:51 »

On the topic of bugs,

I finally fixed the sun damage region bug... sortof. Instead of sun regions not doing any damage to vampires like they should, they at least do damage if you stand out in the sun damage areas long enough. I spent 6-7 hours debugging the cause for the damage override not working with damage regions - I'm going to have to rework script for other damage region effects too.

Ugh...  Undecided
Logged

"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo
Azraelthe7th
Demon Vilicus
Team
Member
******

Karma: 0
Offline Offline

Posts: 204



WWW
« Reply #4 on: 2007-09-25, 17:21:42 »

Ok, I've been trying out my Ride the Flames power and it's been giving me this error:
Quote
{check: compare, value, <var.caster.EXCEPTIONERROR>, is:equal:1}

the error being    
Quote
{check: compare, value, <var.caster.rideflames>, is:equal:1}

I have a var concatenation for the rideflames concatenation like so:    
Quote
{var: caster, rideflames, value, 1}

Any help?
Logged

Come see the World of Darkness unfold.
Dark Ages Christof Romulad: 55%
Javokis
Horses Dick
Member
*****

Karma: 0
Offline Offline

Posts: 1898



« Reply #5 on: 2007-09-25, 18:51:44 »

Activate logging and try the discipline again then attach the log file pertaining to your discipline. Also please attach your code to the discipline too.
Logged

"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo
Azraelthe7th
Demon Vilicus
Team
Member
******

Karma: 0
Offline Offline

Posts: 204



WWW
« Reply #6 on: 2007-09-26, 02:08:53 »

Ok, here's the log and command files for the discipline/power.


* WodalLog21 (disc_ridetheflames) sept.-26-2007-01-56-09-AM.zip (1.29 KB - downloaded 55 times.)
* disc_ridetheflames.txt (2.32 KB - downloaded 62 times.)
Logged

Come see the World of Darkness unfold.
Dark Ages Christof Romulad: 55%
Javokis
Horses Dick
Member
*****

Karma: 0
Offline Offline

Posts: 1898



« Reply #7 on: 2007-09-26, 13:18:21 »

Ok. Right off hand, you're trying to check a variable that you have not given life to. In this new version all undefined variables start out as 'null'. At the start of your script, you must first check if the variable is null by using the text compare rather than a value compare. Place the check for null at the start of your event.

;This will give your variable a starting value if it had not been instantiated yet.
{check: compare, text, <var.caster.rideflames>, is:equal:null}
    {var: caster, rideflames, value, 0}
{endcheck}

Another good idea is just to stop using values for variables that are only used as flags. Use a text variable instead so you wont have to worry about making the above line of code. Values should only be used for math - not flags. Actually, just change you check compares to text. That should fix the problem all together.
Logged

"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo
Javokis
Horses Dick
Member
*****

Karma: 0
Offline Offline

Posts: 1898



« Reply #8 on: 2008-12-27, 15:24:38 »

Ok I found bugs in the feed script. I'll attach the new fixes for anyone who wants them in the repository. Wink
Logged

"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo
Pages: [1]
Print
Jump to:  

Black Rain by Crip Powered by SMF 1.1.15 | SMF © 2011, Simple Machines XHTML | CSS

Page created in 0.068 seconds with 21 queries.