Endeavor Modifications

Please Help Support E-Mods.net by Donating


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.

Author Topic: Bug  (Read 1882 times)

Offline ORI

  • Team
  • Member
  • ******
  • Posts: 365
  • Karma: 1
Bug
« on: 2007-09-14, 18: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  .

Offline Javokis

  • Horses Dick
  • Member
  • *****
  • Posts: 1948
  • Karma: 2
Re: Bug
« Reply #1 on: 2007-09-14, 19: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.
"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo

Offline ORI

  • Team
  • Member
  • ******
  • Posts: 365
  • Karma: 1
Re: Bug
« Reply #2 on: 2007-09-14, 19:17:33 »
ok thanks, thought it might be that but it didnt make much sense since its a + not a *.

Offline Javokis

  • Horses Dick
  • Member
  • *****
  • Posts: 1948
  • Karma: 2
Re: Bug
« Reply #3 on: 2007-09-17, 05: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...  :-\
"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo

Offline Azraelthe7th

  • Demon Vilicus
  • Team
  • Member
  • ******
  • Posts: 204
  • Karma: 0
    • Shadownessence: The World of Darkness Unfolded
Re: Bug
« Reply #4 on: 2007-09-25, 16: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?
Come see the World of Darkness unfold.
Dark Ages Christof Romulad: 55%

Offline Javokis

  • Horses Dick
  • Member
  • *****
  • Posts: 1948
  • Karma: 2
Re: Bug
« Reply #5 on: 2007-09-25, 17: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.
"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo

Offline Azraelthe7th

  • Demon Vilicus
  • Team
  • Member
  • ******
  • Posts: 204
  • Karma: 0
    • Shadownessence: The World of Darkness Unfolded
Re: Bug
« Reply #6 on: 2007-09-26, 01:08:53 »
Ok, here's the log and command files for the discipline/power.

Come see the World of Darkness unfold.
Dark Ages Christof Romulad: 55%

Offline Javokis

  • Horses Dick
  • Member
  • *****
  • Posts: 1948
  • Karma: 2
Re: Bug
« Reply #7 on: 2007-09-26, 12: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.
"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo

Offline Javokis

  • Horses Dick
  • Member
  • *****
  • Posts: 1948
  • Karma: 2
Re: Bug
« 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. ;)
"There's nothing wrong with horses dicks, there's nothing wrong with sucking horses dicks." -Signo