• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[vJASS] LUA Item Generation Problems

Status
Not open for further replies.
Level 4
Joined
Jul 18, 2009
Messages
81
So I'm having a weird issue with generating items with LUA. It generates the item fine but my other items get changed in the process.
For example I have and item with a tooltip layout like this:
"Item description (there should be a blank line between this and the stats).

Stats
Item Type"
Using ctrl-Enter to create the new lines (rather than |n because I find it more readable).
However, after I've created a new item with LUA, it adds an addition line between the Description and Stats. It looks the same in the editor but ingame there is clearly another line.

Has anyone else ever encountered this problem and is there a solution (other than avoiding using ctrl-Enter)?


I made a testmap illustrating the problem. Instructions:
  1. Run the map a first time to see the correct tooltip layout
  2. Open the map, enable the "Generate" trigger and save
  3. Close and then reopen the map
  4. Disable the "Generate" trigger and save
  5. Test the map and see that the item now has an additional line between the description and stats
 

Attachments

  • LUA Object Generation Test.w3x
    11.2 KB · Views: 50
Level 26
Joined
Aug 18, 2009
Messages
4,097
The Object Merger inlines the strings from .wts into the objmod-file and seems to interpret your breaks wrongly. (It adds a 2nd 0D before the 2nd break)

Well, what can be done? Contacting the author (PitzerMike), I have not seen a feature to disable the inlining. Since you want to have this type of break in the editor, you cannot feed the Object Merger anything else. You could post-process the objmod-file and replace the sequences.
 
Status
Not open for further replies.
Top