Jump to content

Elementary question on 2da file reading


grodrigues

Recommended Posts

The following code:

COPY - ~spell_tweaks/components/desc_fixes/2da/spelldesc.2da~ ~override~
    READ_2DA_ENTRIES_NOW rows 3
    PATCH_PRINT "Number of rows: %rows%."
    READ_2DA_ENTRY_FORMER rows 1 1 spellname
    PATCH_PRINT "Spell name: %spellname%."
    READ_2DA_ENTRY_FORMER rows 1 2 spelldesc
    PATCH_PRINT "Description: %spelldesc%."
    READ_2DA_ENTRY_FORMER rows 1 3 modify
    PATCH_PRINT "Modify? %modify%."

Prints correctly that the number of rows is 1 but then barfs on the first READ_2DA_ENTRY_FORMER. Why oh why? Test 2da file attached.

 

spelldesc.2da

Edited by grodrigues
Typos
Link to comment

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...