Author Topic: Fds class  (Read 3195 times)

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2235
Re: Fds class
« Reply #105 on: March 02, 2017, 05:14:53 PM »
You included the resources in your mini-mod "try3"
but the data folder is stll pretty much empty.
No co=infig, no bass.dll, no data files, and the
playfile.log is mal-named.  Not much hope of duplicating
your problem.

Offline ArmorNox (Funky Dynamite)

  • Jr. Member
  • **
  • Posts: 65
Re: Fds class
« Reply #106 on: March 02, 2017, 07:38:19 PM »
sorry, try this
"Where does he get those -wonderful- toys?!"
"Why, I sell my soul, of course...."

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2235
Re: Fds class
« Reply #107 on: March 02, 2017, 07:52:14 PM »
Seems to be closer.  There was no Playfile.log.
In desperation, I renamed your "Record002.log" to "Playfile.log"
and we got a little further.  The next thing the engine complained
about was that your Data folder contained no "items.dat".
You must have deleted it because you could not have played
the game without it.

May I suggest that you attempt to re-play your mini-mod
before posting it?  If you cannot re-play it then I won't
be able to re-play it either.

Offline ArmorNox (Funky Dynamite)

  • Jr. Member
  • **
  • Posts: 65
Re: Fds class
« Reply #108 on: March 04, 2017, 02:45:09 PM »
sigh...shoot...could have sworn...
sorry
there.  this should work.  I made a point of going back and reading what you guys said to do....
now, if the gosh darn playfile.log would quit disappearing *kicks file*
I didn't use any of my own edits or resources, so....
"Where does he get those -wonderful- toys?!"
"Why, I sell my soul, of course...."

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2235
Re: Fds class
« Reply #109 on: March 04, 2017, 04:24:51 PM »
You obviously did not test your mini-mod because
there was no "Playfile.log".  So I renamed "Playfile.log.log" in
the hope that it was what you wanted me to use.

It added a character and entered a combat where a
large, red dragon breathed fire and killed the only
PC in the combat.  He died.  End of game.  No problem.

You made that recording with version 2.71 of the engine.
I used version 2.77.  I suggest you upgrade to version 2.77
and see if that woks better for you.

Offline ArmorNox (Funky Dynamite)

  • Jr. Member
  • **
  • Posts: 65
Re: Fds class
« Reply #110 on: March 04, 2017, 06:05:53 PM »
okay, sorry.  I thought that would work. must be due to i'm using a copy...somehow.  shrug.
but ok, on mine, it makes it crash.  Where do I download 2.77...which is likely my problem...
"Where does he get those -wonderful- toys?!"
"Why, I sell my soul, of course...."

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2235
Re: Fds class
« Reply #111 on: March 04, 2017, 07:33:43 PM »

Offline ArmorNox (Funky Dynamite)

  • Jr. Member
  • **
  • Posts: 65
Re: Fds class
« Reply #112 on: March 06, 2017, 12:00:58 PM »
okay.  thank you.  it worked.  Now that I know what I'm doing (kinda), i try to stay current on the versions, but sometimes its hard to find the most current ones.
And I know what I did wrong on the minimods, any future ones -should- work.
As for my most recent question:  The activation/deactivation script Manikus gave is correct, the Regeneration script I did was not correct.  The program gave a big "WRONG", how do I do to fix it?  Should I make another minimod?
"Where does he get those -wonderful- toys?!"
"Why, I sell my soul, of course...."

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2235
Re: Fds class
« Reply #113 on: March 06, 2017, 12:08:05 PM »
Quote
The program gave a big "WRONG"

What program?  Did it really say "WRONG"?  What
did it say?  When did it give this "big WRONG"?

Some hints might be useful for anyone attempting
to help you.

Offline ArmorNox (Funky Dynamite)

  • Jr. Member
  • **
  • Posts: 65
Re: Fds class
« Reply #114 on: March 06, 2017, 12:43:29 PM »
it was a joke...sorry.....
I meant the program, Dungeon Craft.  I apologize for any vagueness.
When I checked the script in question, in question, the one that is supposed to allow the character wearing the suit to regenerate (similar to a Troll) through the editor, it indicated it was incorrect....
I posted the information last page or so, I did not think it was prudent to post it again...  Nevertheless, i have the incorrect script i attempted to use saved, would you like me to pot the script in its entirely here?
"Where does he get those -wonderful- toys?!"
"Why, I sell my soul, of course...."

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2235
Re: Fds class
« Reply #115 on: March 06, 2017, 04:01:39 PM »
Quote
would you like me to pot the script in its entirely here?

I looked back and found several scripts posted but I did not
see what error was produced.  I'm probably blind.  Nevertheless,
if you post the script and the error message, I might be able to
help you.

Offline ArmorNox (Funky Dynamite)

  • Jr. Member
  • **
  • Posts: 65
Re: Fds class
« Reply #116 on: March 06, 2017, 05:43:33 PM »
It was not an error exactly.  I'm testing scripts through the editor at this point.  To review, I have an armor I would like to when worn to allow a character to regenerate (among other things, but that's besides the point at the moment).  Manikus told me that this needed two  scripts, one to activate/deactivate it, and one to do the actual work.
This is the script Manikus gave me:

\(BEGIN)
name = item_SymbiotecharacterRegeneration
[OnReady] = $SET_CHARACTER_SA($CharacterContext(),"characterRegeneration","3");
[OnUnReady] = $DELETE_CHARACTER_SA($CharacterContext(),"characterRegeneration");
\(END)

It is indeed valid, as evidenced by screen shot #1

This is the script that actually is supposed to do the work that I was trying to do.  It is basically the Troll Regeneration monster ability, but I changed a couple words.  Which I admit was way too easy. 

\(BEGIN)
name = characterRegeneration
[StartCombatRound] = $VAR tgt;
-$VAR currHP;
-$VAR round;
-tgt = $IndexOf($Myself());
-currHP = $GET_CHAR_HITPOINTS(tgt);
-round = $GetCombatRound();
-$IF (currHP <# 42)
-   {
-      $IF ($SA_COMBATANT_GET("timeToRegen") == "-?-?-")
-      {
-         $SET_COMBATANT_SA($Myself(),"timeToRegen",round +# 3);
-      };
-   };
-$IF (round ==# $SA_COMBATANT_GET("timeToRegen"))
-   {
-      $RETURN $SET_COMBATANT_SA($Myself(),"characterRegeneration",$SA_PARAM_GET());
-   };
\(END)

Which presented the following message, as evidenced by screen shot #2.  I'm sorry I couldn't move the window up or down. 
"Where does he get those -wonderful- toys?!"
"Why, I sell my soul, of course...."

Offline Paul R. Stevens

  • Dungeon Craft Tester
  • Hero Member
  • ***
  • Posts: 2235
Re: Fds class
« Reply #117 on: March 06, 2017, 06:34:18 PM »
Thanks much for the information.  It brings up a rather
complicated feature of the editor.  I am looking into it
further before I muddy the water with my guesses as to
the origin of the problem.

See you soon.

Offline manikus

  • Skriptor
  • Administrator
  • Hero Member
  • *****
  • Posts: 9837
Re: Fds class
« Reply #118 on: March 06, 2017, 06:57:07 PM »
I don't mind muddying the waters. ;)

The problem is in line #4: $Myself() is not valid. Look at Paul's Help for the StartCombatRound Hook and you will see that it wants a different context. It wants either $CharacterContext() or $CombatantContext().

Your error message tells you to look to line #4 and it tells you why. ;)

Offline ArmorNox (Funky Dynamite)

  • Jr. Member
  • **
  • Posts: 65
Re: Fds class
« Reply #119 on: March 06, 2017, 07:53:04 PM »
Oh, shoot, sorry. 
The big problem here is I don't know what I'm exactly looking at.  To me (and no offense, guys, really, I'm joking) this code looks almost totally like gobbly gook.  Then again, I'm not a programmer, so....
Anyway, are both of those interchangable? if not, which one of them should I use?
And should the line be like this:

Example:
-tgt = $IndexOf $CharacterContext()

?
"Where does he get those -wonderful- toys?!"
"Why, I sell my soul, of course...."