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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Azzerhoden

Pages: [1] 2 3
1
I ended up creating areas of the same size and then entering in the positional information directly.  I even went so far as to create a large spreadsheet with all the positional values so as to customize the shape of an area to suit my needs.

While a pain at first it did allow me to connect a string of areas together without any gaps.

2
General Discussion / Re: Unable to connect - EU West Server 20
« on: Dec 19, 12, 02:09:57 PM »
What were you working on prior to encountering this issue?  Had you made changes to any of the default scripts?

Cooper beat me to it!

3
General Discussion / Re: Unable to connect - EU West Server 20
« on: Dec 19, 12, 02:09:13 PM »
What were you working on prior to encountering this issue?  Had you made changes to any of the default scripts?

4
Yeah - I've been known to miss a thing or two as well, here and in the client.  ;)

5
Tested this as well, and the are not.

6
It turns out it is even simpler.  In the strutils script is a function named IsValidEnumValue.

The function code is
Code: [Select]
public function IsValidEnumValue(enumType as String, testValue as String) as Boolean
  // lets you knwo if testValue is valid for the specified enumType
  enumValues as List of String = GetEnumValues(enumType)
  foreach enumVal in enumValues
    if ToLower(enumVal) == ToLower(testValue)
      return true
    .
  .
  return false
.

And to use my previous example, the way to call it is
Code: [Select]
: ced "river_states"; "empty" "full"

if strutils:IsValidEnumValue("river_states","empty")
--- do something useful since it exists.

Thanks again for pointing me in the right direction!

7
Perfect!  Thanks everyone! 

8
Would the None operator work for this?  Using an example from the wiki

: ced "river_states"; "empty" "full"

Would the following test be correct?  Not at home where I can test this in the script editor.

if river_states.empty = None
----  throw an error

9
Apologies if this is listed somewhere easily found, but I am struggling to find the right search terms.

In essence, I am building some scripts to test my entered functionality using the command line.  One of the commands is to add a value into a Lookup List using an enumeration as the key.  Before I try to add it, I want to test whether I have defined the enumeration, giving my lack of proficiency at typing.

After I have verified that the entered text matches a defined enumeration value, that I'll use the "has" operator to test whether it has already been entered, but I am stumped as to how to test for a correctly entered enumeration key.

Down the road I planned on transitioning these enumerations into constants, so if this is not possible I'll go ahead and make the transition now.  Actually, not sure how I would test for whether a constant was defined either though.   ;D


Thanks in advanced!

10
Scripting & Programming / Re: [] simple ai spawn script?
« on: Nov 20, 12, 02:45:28 PM »
Actually, the attacking AI is there already, but you have to be in a 'play' instance, rather than an 'edit' instance.

11
Got it.  Thanks Andy!

(And I am going to go back and change the colors of that post.  I did not intend that)

12
Andy, I am a little confused by this.  What you are saying is that if I store a lookup list field on a character of the previously listed colors, and then remove the color red (with a value of 3), any reference to variable_name[cGREEN] after could have the potential of pulling in the previously value stored at variable_name[cRED]?

If that happened, what type of error would accessing variable_name[cRED] give (Assuming the script was not compiled again, since compiling it would throw an error).

((Added the letter c to keep the text color from changing!  For the example please ignore it!))

13
Is there a limit in the number of values I can add to an enumeration?  I am considering several different design ideas, and one of them would require that I create an enumeration type with potentially several thousand values.

14
And .......

Searching on the body of posts (not just the title), found me this thread:  https://community.heroengine.com/forums/index.php/topic,2051.msg11219.html#msg11219
Spinning down server.

Updated:  Yes, this resolved the issue.

15
After playing around with HeroBlade and classes, I am now receiving the following errors when ever starting up the editor.

Code: [Select]
[ServerScreamer] Exception serializing data for replication (if definitions have changed, restarting replication will fix): field ID: 9223372056172209106 not present in HeroClass::getField on node 4611686018429787967
[ServerScreamer] Exception serializing data for replication (if definitions have changed, restarting replication will fix): field ID: 9223372056172209106 not present in HeroClass::getField on node 4611686018429787985
[ServerScreamer] Exception serializing data for replication (if definitions have changed, restarting replication will fix): field ID: 9223372056172209106 not present in HeroClass::getField on node 4611686018429792349
[ServerScreamer] Exception serializing data for replication (if definitions have changed, restarting replication will fix): field ID: 9223372056172209106 not present in HeroClass::getField on node 4611686018429792125
[ServerScreamer] Exception serializing data for replication (if definitions have changed, restarting replication will fix): field ID: 9223372056172209106 not present in HeroClass::getField on node 4611686018429820049
[ServerScreamer] Exception serializing data for replication (if definitions have changed, restarting replication will fix): field ID: 9223372056172209106 not present in HeroClass::getField on node 4611686018429839663
[ServerScreamer] Exception serializing data for replication (if definitions have changed, restarting replication will fix): field ID: 9223372056172209106 not present in HeroClass::getField on node 4611686018429791464
[ServerScreamer] Exception serializing data for replication (if definitions have changed, restarting replication will fix): field ID: 9223372056172209106 not present in HeroClass::getField on node 4611686018429838712
[ServerScreamer] Exception serializing data for replication (if definitions have changed, restarting replication will fix): field ID: 9223372056172209106 not present in HeroClass::getField on node 4611686018429809025

I believe this has come about because I was cleaning out changes I had made regarding character creation.  However, it may also be tied to the lookup lists I have added (and modified).  Is there a command I can run to identify the name of the node based on the ID#, or if not, the field name based on the ID#?

I don't see any impact of these errors, but since I am hardly an expert yet, I don't want these errors to cause an issue down the road when I attempt to further my experience in some new area.

Pages: [1] 2 3