HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.
Pages: 1 [2] 3 4 5

Author Topic: Simple mana system  (Read 17779 times)

GARDrealms

  • World Owners
  • ****
  • Posts: 18
    • View Profile
Re: Simple mana system
« Reply #15 on: Feb 06, 12, 09:49:46 PM »

And my labels for my Char and NPCs are blank, and fell free to cal me a moron if you fell like it.
Logged

LastJudge

  • General Accounts
  • *
  • Posts: 215
    • View Profile
Re: Simple mana system
« Reply #16 on: Feb 07, 12, 03:02:03 AM »

Hmm ... I don't really think that me.name and/or killer.name has something to do with this tutorial.

Next time please post a script name too, so it's easier to find it, but this one should be E_CommonCharacterClassMethods if I remember correctly.

It would be nice if you posted the exact error you are getting, because this way it's hard to guess what's wrong.
Logged

GARDrealms

  • World Owners
  • ****
  • Posts: 18
    • View Profile
Re: Simple mana system
« Reply #17 on: Feb 07, 12, 05:37:53 AM »

19:51:02: !ERROR!System:Replication error: Replication error with node 9223372058843664358 'field ID: 9223372059023664302 not present in HeroClass(4611686018428887921)::getField on node 9223372058843664358' doing ReplicationGroupBase.cpp(2056):pVar = pNode->getField(mFieldBeingSet)
19:51:02: !ERROR!System:Replication error: Replication error with node 9223372058878664334 'field ID: 9223372059023664302 not present in HeroClass(4611686018428887923)::getField on node 9223372058878664334' doing ReplicationGroupBase.cpp(2056):pVar = pNode->getField(mFieldBeingSet)
19:51:02: !ERROR!HeroScript::HeroMachine::ScriptError:Invalid GUI Layer [1] on control: level (1000000252) layer(1)
19:51:02: !ERROR!System:SCRIPT ERROR: In function ScriptError: Invalid GUI Layer [1] on control: level (1000000252) layer(1)
02/06/2012 19:50:06
Call trace:
  Script GUIControlClassMethods line 73 me[1000000252]
  Script GUIControlClassMethods line 50 me[1000000252]
starting method/function MOVETOGUILAYER
starting me[id=1000000252 class=GUILabel]
19:51:02: System:SCRIPT[E_ExperienceBarClassMethods]:xp: 0
19:51:02: System:SCRIPT[E_ExperienceBarClassMethods]:last: 250
19:51:03: !ERROR!System:Replication error: Replication error with node 9223372058522664480 'field ID: 9223372059023664302 not present in HeroClass(4611686018428887923)::getField on node 9223372058522664480' doing ReplicationGroupBase.cpp(2056):pVar = pNode->getField(mFieldBeingSet)
« Last Edit: Mar 04, 12, 11:46:32 PM by HE-Cooper »
Logged

LastJudge

  • General Accounts
  • *
  • Posts: 215
    • View Profile
Re: Simple mana system
« Reply #18 on: Feb 07, 12, 07:51:54 AM »

I meant errors you get when trying to compile it when you were doing this tutorial.
Logged

GARDrealms

  • World Owners
  • ****
  • Posts: 18
    • View Profile
Re: Simple mana system
« Reply #19 on: Feb 07, 12, 05:44:53 PM »

sorry,
Error is:
Node variable dose not specify a class that contains the field name

E_CommonCharacterClassMethods
« Last Edit: Feb 07, 12, 07:01:09 PM by GARDrealms »
Logged

LastJudge

  • General Accounts
  • *
  • Posts: 215
    • View Profile
Re: Simple mana system
« Reply #20 on: Feb 08, 12, 01:55:44 AM »

You probably forgot to create the E_manaPoints field for E_CommonCharacter in DOM editor.
Logged

GARDrealms

  • World Owners
  • ****
  • Posts: 18
    • View Profile
Re: Simple mana system
« Reply #21 on: Feb 08, 12, 04:51:58 PM »

did it.. :-\
Logged

CaSpivey

  • General Accounts
  • *
  • Posts: 22
  • Programmer
    • View Profile
Re: Simple mana system
« Reply #22 on: Feb 08, 12, 11:22:21 PM »

Took me three times of doing and redoing this tutorial and working with everything to get it to work, I'm not exactly sure what mistake I made but it did help to start all over from the beginning as a simple typo could mess the whole system up.
Logged

LastJudge

  • General Accounts
  • *
  • Posts: 215
    • View Profile
Re: Simple mana system
« Reply #23 on: Feb 09, 12, 12:40:57 AM »

Took me three times of doing and redoing this tutorial and working with everything to get it to work, I'm not exactly sure what mistake I made but it did help to start all over from the beginning as a simple typo could mess the whole system up.

Was there any part of the tutorial that caused confusion? Cause if yes, just tell me and I can try to rewrite that part to be more clear.
Logged

elchettoloco

  • General Accounts
  • *
  • Posts: 21
    • View Profile
Re: Simple mana system
« Reply #24 on: Mar 04, 12, 11:10:55 PM »

Great Tutorial Judge!  All worked perfectly

I did implement the mana gauge on the status bar, however, when using the fireball ability the gauge does not move(it is at the default setting).  I'm taking it there is some association regarding this and I did check the xml and properties and did not find anything that tied the healthPanel and/or slider to any particular script.

Or perhaps I missed it.

Thanks anyway m8!
Logged

LastJudge

  • General Accounts
  • *
  • Posts: 215
    • View Profile
Re: Simple mana system
« Reply #25 on: Mar 05, 12, 01:08:14 AM »

Well, as I didn't go through adding the mana gauge to your status bar, I didn't change one value for this tutorial, I guess I will update this tutorial when I'm on developer machine.

In the step 3, where you change values for the server side of mana points, you also need to set Change Callback to true.
Logged

Lattam

  • World Owners
  • ****
  • Posts: 4
    • View Profile
Re: Simple mana system
« Reply #26 on: Jun 04, 12, 09:51:52 AM »

Great Tutorial. 

I was able to setup this up fairly easily.

Keep up the good work.
Logged

LastJudge

  • General Accounts
  • *
  • Posts: 215
    • View Profile
Re: Simple mana system
« Reply #27 on: Jun 04, 12, 05:23:29 PM »

Thanks, I'm glad you liked it :)
Logged

Hobbie

  • World Owners
  • ****
  • Posts: 11
  • Master of Banjos
    • View Profile
Re: Simple mana system
« Reply #28 on: Jun 29, 12, 12:05:17 PM »

Simple tutorial, but thanks for providing it!
Logged
Dan Hanson
Re: Simple mana system
« Reply #29 on: Nov 19, 12, 09:56:20 AM »

Say if I wanted to have the mana subtract by 10 every second from 100 while sprinting and when at 0 disables sprint, how could this be achieved?
Logged
Pages: 1 [2] 3 4 5