UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Bug report #3276 Data node not storing integer?
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "Not determined".
Issue basics
  • Type of issue
    Bug report
  • Category
    General
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
  • Estimated time
    Not estimated
Issue details
  • Resolution
    Not determined
  • Reproducability
    Not determined
  • Severity
    Not determined
  • Complexity
    Not determined
  • Platform
    Not determined
  • Architecture
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/bugs/3276 Item 3276] imported from sourceforge.net tracker on 2013-01-28 20:05:19

For some reason, I can't get a data node to store an integer correctly. The exact same code, when the data node is named "test", seems to work.

To look at this, please see /mods/ui2/ufos/bases.ufo.

Lines 360-361 include two data nodes:

data nodeheight { integer 1 }
data test { integer 1 }

Lines 579-580 echo the values of these data nodes:

cmd "echo test <node:root.sections.facilities.bld_panel.bld_space.test@integer>"
cmd "echo nodeheight1 <node:root.sections.facilities.bld_panel.bld_space.nodeheight@integer>"

However, in game "test" echoes the correct integer and "nodeheight" does not.

test 1 2012/05/12 02:13:13
nodeheight1 <node:root.sections.facilities.bld_panel.bld_space.nodeheight@integer> 2012/05/12 02:13:13

The string "nodeheight" does not appear anywhere else in the .ufo file, so I can&#039;t see how it could be modified before the echo command is complete. To test this yourself, load latest master with UI2 mod and click on any base. The text should be echoed to the screen.

bases.ufo with these echo commands was committed here:

http://ufoai.git.sourceforge.net/git/gitweb.cgi?p=ufoai/ufoai;a=commit;h=21e9d0b73b7021aa804ade4ba4b34feff1c8d0c6
===== Comments Ported from Sourceforge =====

====== bayo-fr (2012-05-13 11:25:05) ======

I think you can use = *node:root.sections.facilities.bld_panel.bld_space.nodeheight@integer
instead of <node:root.sections.facilities.bld_panel.bld_space.nodeheight@integer> which is not the same way to work. But i can&#039;t check right now.
====== natewr (2012-05-14 12:02:59) ======

I tried changing lines 579-580 to the following:

cmd "echo test <node:root.sections.facilities.bld_panel.bld_space.test@integer>"
cmd "echo nodeheight1 *node:root.sections.facilities.bld_panel.bld_space.nodeheight@integer"

This resulted in the following output:

test 1 2012/05/14 14:00:15
nodeheight1 2012/05/14 14:00:15

It seems that there is no integer going into the node. Lines 360-361 remain unchanged.
====== bayo-fr (2012-05-14 17:11:54) ======

sorry you dont understand me right. While you use it inside quotes, it will not works. I talk about something like that:

*node:foobar@height = *node:root.sections.facilities.bld_panel.bld_space.nodeheight@integer

Anyway, i v got some time now, i hope to fix it soon now.
====== bayo-fr (2012-05-14 18:16:25) ======

Fixed
Steps to reproduce this issue
Nothing entered.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif