[ian-reeds-games] Re: Skill flagging an error when I try to use it for some reason I cannot fathom

  • From: Monkey <murtagh69.monkeys@xxxxxxxxx>
  • To: ian-reeds-games@xxxxxxxxxxxxx
  • Date: Tue, 2 Aug 2016 21:19:01 -0600

That's weird.
I see where in the script there is a problem but, hmm.

On 8/2/16, Sharni-Lee Ward <sharni-lee.ward@xxxxxxxxxxx> wrote:

Yes. The unit files don't have terrain limits so they should be
summonable on this terrain. It's just the tile next to it...


On 3/08/2016 9:41 AM, Monkey wrote:
Hmm, when you are summoning, are you summoning on a tile that is
actually a valid place on which to put the units?

On 8/2/16, Allan Thompson <allan1.thompson@xxxxxxx> wrote:
I am wondering something.

Try the script without the rare summon stuff. If the first part works in
summoning either the mage knight or mage archer, then you can narrow
down
the issue to the rare stuff. If not, it will help narrow it down to the
first part. It is what I do in these situations to help me figure out
what
is going on   . I even switch units to see if I did something weird.

al



From: ian-reeds-games-bounce@xxxxxxxxxxxxx
[mailto:ian-reeds-games-bounce@xxxxxxxxxxxxx] On Behalf Of Sharni-Lee
Ward
Sent: Tuesday, August 02, 2016 4:18 AM
To: ian-reeds-games@xxxxxxxxxxxxx
Subject: [ian-reeds-games] Skill flagging an error when I try to use it
for
some reason I cannot fathom



So I was trying to make a skill to summon soldiers onto the map, and I
swear
I've got every flag down, and the one structure that has this skill has
all
the right points, but it's flagging an error and I don't know why.
Here's
the complete contents of the file in question.



Skill
10
|flags
description Summons soldiers to reinforce the army.
tile
range=3
ai_summon
actions_cost=1
summoning_cost=10
sound=soldiers_march
|script_flags
summon_random mage warrior/mage archer
summon_rare_random maravian general
summon_rare_random_chance 10%



Tell me, what the hell is wrong with that? The game doesn't crash, but
the
units aren't summoned. I know the names are spelled correctly and I
didn't
put in underscores where I shouldn't and I checked this file against
another
with the exact same format which works, so I don't know what the heck is
going on. The error, as retrieved from the speech log:



Error in script.
Calling Context: sm_after_perform
Filename: summoning.js
Line: 28
Column: 10, 11
Object reference not set to an instance of an object.
Noesis.Javascript.JavascriptException: Object reference not set to an
instance of an object. ---> System.NullReferenceException: Object
reference
not set to an instance of an object.
    at Ian.Tile.CanHold(Unit u) in
C:\Data\Recent\Games\TacticalBattle\Tile.cs:line 111
    at Ian.TBHM.IsValidDestination(Tile t, Unit u) in
C:\Data\Recent\Games\TacticalBattle\TBHelperMethods.cs:line 51
    at Ian.Tile.IsValidDestinationFor(Unit u) in
C:\Data\Recent\Games\TacticalBattle\Tile.cs:line 134
    --- End of inner exception stack trace ---
    at Noesis.Javascript.JavascriptContext.Run(String iScript, String
iScriptResourceName)
    at Ian.NoesisWrapper.Run(String script, String resourceName) in
C:\Data\Recent\Games\JSScriptHost\NoesisWrapper.cs:line 14
    at Ian.JSWrapper.Run(IHaveVersion ent, String script, String
callingContext) in C:\Data\Recent\Games\GameEngine\JS.cs:line 47







-----
You can unsubscribe from this list by sending email to
ian-reeds-games-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject
field.
Or by visiting the list page at
//www.freelists.org/list/ian-reeds-games

Download the latest dev version of Tactical Battle here:
http://blindaudiogames.com/downloads/Tactical%20Battle%20Dev.zip




-- 
-Mew
__________
http://www.savethefrogs.com/

-----
You can unsubscribe from this list by sending email to 
ian-reeds-games-request@xxxxxxxxxxxxx with 'unsubscribe' in the Subject field.
Or by visiting the list page at //www.freelists.org/list/ian-reeds-games

Download the latest dev version of Tactical Battle here:
http://blindaudiogames.com/downloads/Tactical%20Battle%20Dev.zip

Other related posts: