Jump to content


Photo

String and spell problem


  • Please log in to reply
4 replies to this topic

#1 Kol3no

Kol3no
  • Member
  • 2 posts

Posted 01 June 2009 - 06:39 AM

Hello,

i hope someone ll help me with these 2 problems :

1. problem is with making new items in program IEEP (v109 build 40). I can make item and when testing it in game everything is just fine. Efects, headers, text... works fine. Until i change language from english to czech. From that moment text is like this : <Invalid Reference> in all editing boxes. It happen on my new items or old items (where i made some change) in all directories of windows (doesnt matter where they are and what name they have). Maybe language instaler did that, but after unninstall it happen again. So how can i protect my new items ? And is there other way how to import items into game, except copy them to override folder ? I find that mods for weidu have console-installer and after installing (for expample stuff of magi v4) is everything ok, but if u look at items in directory before install - there is same "problem" <Invalid Reference>. This is only way how to do that ?

2. problem is with casting some spell permanent after item is equipped. My solution doesnt work. (2 days ago it worked with this effect, but now i dont know how to make it)
    I'm using effect : cast spell on condition
                               while equipped
                               0 - 100 propability
                               self
                               spellname in resource key
                               parameters 0 (up) 8 (down)        [program says : with this condition is spell casted every turn]

When i start game and wear item nothing happen.                               
I cant make scripts, only using this and nearinfinity - for exporting. So can someone help ?
(i know this is not about weidu or modding but most forums related to this are already dead)

Thanks

#2 Epantiras

Epantiras

    Proudly Chaotic Neutral

  • Member
  • 810 posts

Posted 01 June 2009 - 08:41 AM

1. Do you change the item description and name? I usually use Near Infinity for this. If you want to change those parameters, you need to insert a valid "string" number, each string links to a string in the dialogue file of the game. For wxample, if the value for the item name is -1 then the item won't have a name, but if you type 6348 then you'll get "ring". If you want to create an entirely new descrption or name you'll have to use Weidu and type it in the installation file (the tp2). Probably, that's why when you checke modded items in their folders before the install they have <invalid reference>.

2. I'm not sure I've understood what you mean. Do you mean you want an item that casts a spell on the wearer and you want this spell to be permanent, even after the item has been taken away?

Anyway, I'd suggest you to take a look at the tutorials here on SHS http://www.shsforums...showtopic=36781 (if you haven't already)

oO My DA Gallery Oo
oO My Artcorner on SHS Oo
oO "Ask the Betrayer" parody comic Oo
oO My other parody comics on SHS Oo


Oh, and Epantiras, you're simply Epantirastic.

(and no, I'M not egocentric!)

I Hate Elminster! (proud member of the We Hate Elminster club)

#3 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11148 posts

Posted 01 June 2009 - 09:49 AM

Moved to IE Modding Help. :)

Do not use IEEP for item editing (or any other editing). In modding terms, the tool is pretty much antique. Near Infinity or DLTCEP are both better suited for this, and as far as I can recall, they both have built-in support for adding strings to dialog.tlk. They should also be able to better edit the cast-spell-on-condition ability. If you want to make your item distributable (as in, available for others to download and play with), you should create an installer with WeiDU to assign the strings.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#4 Miloch

Miloch

    Barbarian

  • Modder
  • 6579 posts

Posted 01 June 2009 - 09:52 AM

I find that mods for weidu have console-installer and after installing (for expample stuff of magi v4) is everything ok, but if u look at items in directory before install - there is same "problem" <Invalid Reference>. This is only way how to do that ?

Yes, it is the only way, it is also the best way, but it is also easy to get around with WeiDU. Just make a text file called setup-mymod.tp2 and put in it:
BACKUP ~mymod/backup~
AUTHOR ~anything~

BEGIN ~My Mod~

COPY ~mymod/items/myitem1.itm~ ~override~
  SAY NAME1 ~Unidentified name goes here~
  SAY NAME2 ~Identified name~
  SAY UNIDENTIFIED_DESC ~Guess what?~
  SAY DESC ~Identified description~
And so on. Save this in a 'mymod' folder in your game directory (call it what you want). Make a folder called 'backup' in that too. Then download WeiDU.exe (or copy another mod's .exe) and rename it setup-mymod.exe. Put that in your game folder. Congrats, you've just made a WeiDU mod :cheers:.

Note, you can use AUTO_TRA in WeiDU to have different languages for your mod, but that is slightly more advanced.

2. problem is with casting some spell permanent after item is equipped. My solution doesnt work. (2 days ago it worked with this effect, but now i dont know how to make it)
    I'm using effect : cast spell on condition
                               while equipped
                               0 - 100 propability
                               self
                               spellname in resource key
                               parameters 0 (up) 8 (down)        [program says : with this condition is spell casted every turn]

When i start game and wear item nothing happen.

Which spell do you want on your item? The best thing is to look at the effects of the spell and put them all individually on your item under equipping effects. I prefer DLTCEP to NI for this kind of work, but both should do the job (and both are better than IEEP as SConrad says).

I cant make scripts, only using this and nearinfinity - for exporting. So can someone help ?

Need a little more information to help - what is the problem with the scripts?

(i know this is not about weidu or modding but most forums related to this are already dead)

Eh... yes it is about WeiDU and modding, and this forum is not dead :).

Infinity Engine Contributions
Aurora * BG1 NPC * BG1 Fixpack * Haiass * Infinity Animations * Level 1 NPCs * P5Tweaks
PnP Free Action * Thrown Hammers * Unique Containers * BG:EE * BGII:EE * IWD:EE
================================================================
Player & Modder Resources
BAM Batcher * Creature Lister * Creature Checker * Creature Fixer * Tutu/BGT Area Map & List * Tutu Mod List
================================================================
"Infinity turns out to be the opposite of what people say it is. It is not 'that which has nothing beyond itself' that is infinite, but 'that which always has something beyond itself'." -Aristotle


#5 Kol3no

Kol3no
  • Member
  • 2 posts

Posted 01 June 2009 - 10:37 AM

thx for replies and sorry about bad topic :)

Miloch thx for code, i ll try it. So i need some time to study these programs... I ll write if I ll be successfull or not.