HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: [Resolved] BaseEffect prototype in HJ  (Read 2540 times)

dmccollum

  • General Accounts
  • *
  • Posts: 29
    • View Profile
[Resolved] BaseEffect prototype in HJ
« on: Oct 07, 12, 05:38:52 PM »

Does anyone know what class the baseEffect prototype in HJ uses? I thought it might be Effect, but I'm not sure. Cooper, Is there anyway we can get access to \SP in HJ?
« Last Edit: Oct 18, 12, 09:45:36 AM by HE-Cooper »
Logged

dmccollum

  • General Accounts
  • *
  • Posts: 29
    • View Profile
Re: BaseEffect prototype in HJ
« Reply #1 on: Oct 15, 12, 01:05:40 PM »

I think I've found the class this prototype uses, but there are several others that I'd like to see. Cooper, if a query only option is not available on the Reference worlds, can you guys post an output of \sp for the prototypes on the wiki?
Logged

Trigger

  • General Accounts
  • *
  • Posts: 59
    • View Profile
Re: BaseEffect prototype in HJ
« Reply #2 on: Oct 15, 12, 03:06:52 PM »

Code: [Select]

21:04:29: SP LISTBEGIN 9223372058483027577 : "Prototype ID: 9223372058483027577 Name: "BaseEffect" Description: "" Base Class ID: 9223372056647021547 Name: "Effect" Package: "game""
SP LISTELEMENT 9223372058483027577 : "Field ID: 9223372056647021538 Name: "effectClockType" Value: "GAME""
SP LISTELEMENT 9223372058483027577 : "Field ID: 9223372056647021539 Name: "effectName" Value: "BaseEffect""
SP LISTELEMENT 9223372058483027577 : "Field ID: 9223372056647021540 Name: "effectOwner" Value: "0""
SP LISTELEMENT 9223372058483027577 : "Field ID: 9223372056647021541 Name: "effectScript" Value: "Effect""
SP LISTELEMENT 9223372058483027577 : "Field ID: 9223372056647021542 Name: "effectStopTick" Value: "0""
SP LISTELEMENT 9223372058483027577 : "Field ID: 9223372056647021543 Name: "effectTarget" Value: "0""
SP LISTELEMENT 9223372058483027577 : "Field ID: 9223372056647021544 Name: "effectTickCounter" Value: "0""
SP LISTELEMENT 9223372058483027577 : "Field ID: 9223372056647021545 Name: "effectTimer" Value: "timer suspended=true state=OFF script=Effect realTime=false startTime=01/01/1900 06:00:00 UTC stopTime=01/01/1900 06:00:00 UTC lastFired=01/01/1900 06:00:00 UTC fireRate=0:00:10.000 elapsedTime=0:00:00.000 pausedTime=0:00:00.000""
SP LISTELEMENT 9223372058483027577 : "Field ID: 9223372056647021546 Name: "effectType" Value: "ONESHOT""
SP LISTEND 9223372058483027577 : "End of List."


Can't remember how I found it sorry, it was quite a while ago!

Let me know if there are any others you need.
Logged

dmccollum

  • General Accounts
  • *
  • Posts: 29
    • View Profile
Re: BaseEffect prototype in HJ
« Reply #3 on: Oct 15, 12, 03:11:03 PM »

Thanks! If you have CharGroups (server) and CharGroup (client) that would be awesome.
Logged

Trigger

  • General Accounts
  • *
  • Posts: 59
    • View Profile
Re: BaseEffect prototype in HJ
« Reply #4 on: Oct 15, 12, 03:16:58 PM »


Server is

Code: [Select]
21:13:46: SP LISTBEGIN 9223372056711021535 : "Prototype ID: 9223372056711021535 Name: "CHARGROUPS" Description: "" Base Class ID: 9223372056711021534 Name: "CharGroupDB" Package: "game""

Client is

Code: [Select]
21:14:50: System:SP LISTBEGIN 9223372057810021798 : "Prototype ID: 9223372057810021798 Name: "CHARGROUP" Description: "" Base Class ID: 9223372057810021796 Name: "CharGroup" Package: "game""
SP LISTELEMENT 9223372057810021798 : "Field ID: 61787000059 Name: "changed" Value: "false""
SP LISTELEMENT 9223372057810021798 : "Field ID: 9223372057810021785 Name: "charGroupCreated" Value: "01/01/1900 07:00:00""
SP LISTELEMENT 9223372057810021798 : "Field ID: 9223372057810021786 Name: "charGroupLeader" Value: """
SP LISTELEMENT 9223372057810021798 : "Field ID: 9223372057810021787 Name: "charGroupMasterID" Value: "0""
SP LISTELEMENT 9223372057810021798 : "Field ID: 9223372057810021795 Name: "charGroupMemberList" Value: "!!""

From what I remember the UI needs rebuilding, not sure what the overall system is like yet, would love to hear if you get this up and running what was required...
Logged

Trigger

  • General Accounts
  • *
  • Posts: 59
    • View Profile
Re: BaseEffect prototype in HJ
« Reply #5 on: Oct 16, 12, 12:03:21 PM »

Just a quick note in case anyone has a similar issue,

The quickest way to find this out is in the script you are working on, look for any field being set against that prototype, then just lookup the field in the DOM editor and you will see what class it is attached too.

And dmccollum, just in case you are having trouble (it took me a while to find) but there is a InitBaseEffect method somewhere buried in the HJ start-up scripts, you will have to put that in your AreaLoad method else it will no work, let me know if you need the snippet!
Logged

dmccollum

  • General Accounts
  • *
  • Posts: 29
    • View Profile
Re: BaseEffect prototype in HJ
« Reply #6 on: Oct 16, 12, 12:08:04 PM »

Thanks Trigger for your help. I had the CharGroup class as the base class of the prototype. So I had to delete the prototype and recreate it with the CharGroupDB class. That then broke the $CharGroup Node, so I just created it with the new prototype. I'm waiting for my server to spindown to see if that worked.
Logged