Jump to content

Parse error in Weidu on kit mod installation


Fochmarc

Recommended Posts

Putting together a custom kit mod, and running through the Weidu installation, but I keep getting a weird Weidu Parse Error message.

 

Here's my TP2 File:

 

BACKUP ~Warder/backup~ // so WeiDU can uninstall
AUTHOR ~edited~ // contact address displayed if installation fails
BEGIN ~Warder Kit~
INCLUDE ~Warder/fl#add_kit_ee.tpa~
ADD_KIT ~Warder~
// appended to CLASWEAP.2da
~Warder 1 1 1 1 1 1 1 1
~
// appended column-wise to WEAPPROF.2da
Warder 4 4 0 4 4 4 4 0 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 0 0 0 0 0 2 2 2 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0~
// appended to ABCLASRQ.2da
~Warder 0 0 0 0 9 0~
// appended to ABCLSMOD.2da
~Warder 0 0 0 0 0 0~
// appended to ABDCDSRQ.2da
~Warder 0 0 0 0 17 0~
// appended to ABDCSCRQ.2da
~Warder 0 0 0 0 15 0~
// appended to ALIGNMNT.2da
~Warder 0 0 0 1 0 0 1 1 0~
// appended to DUALCLAS.2da
~Warder 1 0 1 1 0 1~
// path to your CLAB-style 2da file
~Warder/Warder/CLABPA07.2da~
// PC races and classes allowed to use this kit, from KITTABLE.2da
~K_P_H~
// usability flags, added to the end of the KITLIST.2da entry
~0x00000008 6~
// HLA table to use; see LUABBR.2da
~Pa0~
// list of starting equipment for PCs starting in ToB. Appended column-wise to 25STWEAP.2da
~CHAN09 * HELM07 BAG20 RING06 RING31 * BOOT01 AMUL19 BRAC16 BELT06 AROW11,40 BULL03,40 BOLT06,40 POTN52,5 POTN4,2 POTN14,5 HAM07 SW1H27 STAF08~
// Lower, mixed, and help kit names and descriptions, added to KITLIST.2da
SAY ~warder~
SAY ~Warder~
SAY ~WARDER: Warders are guardians, watching over august personages, holy sites, or travelers in need of a strong arm. Warders train extensively in melee weapons, the better to stay close to their charges. A Warder's dedication is without equal - they cannot be swayed from their duty, and will know no fear in accomplishing their missions.
Advantages:
- Immune to charm, hold, and poison.
- May achieve Mastery (four slots) with all melee weapons.
- May achiveve Specialization (two slots) in any fighting style and allocate three slots in Two-Weapon Style.
- +1 to hit and damage rolls every five levels.
Disadvantages:
- May not use ranged weapons.
~
and the Error message:
Link to comment

I'm not seeing anything wrong in the syntax, but you're using an ancient version of WeiDU--grab the latest (v242) from the WeiDU forums.

 

That did at least change the error message:

 

https://imgur.com/a/0REx7

 

Editting for additional information:

 

All the files for the mod are loose in the BG:EE install folder. Not contained in subfolders or anything else.

Edited by Fochmarc
Link to comment

When in doubt, start checking tildes.

 

You're missing the opening tilde in front of the weapprof line in ADD_KIT; and the closing tilde for the clasweap line should probably be on the same line as everything else.

It's always the silliest things that get us. Thanks man, that was it.

Link to comment

Well, it's opening and closing tilde... as they should be on the same row, so you start with a tilde and end on it in the same row.

As not doing so might give your tables extra rows, and that's bad.

As the tilde at the end of the CLASWEAP.2da is in the wrong row. Which then looks like it would starts the WEAPPROF.2da, but doesn't. And like said, the v185 doesn't support the EE games at all as there were no EE games when Weimer exited the moding scene at 2005.

Edited by Jarno Mikkola
Link to comment

I think they got it, Jarno.

The intention of the post was to reafferm to the reader that the code above if flawed in multiple ways. It's not just that the tildes are missing, but that they should be at the start and the end... not criscross lines and dimentions.

Cause if you do that and someone then utilizes a patch function via line counting, the patch fuction fails because this mod, not because it-itself is flawed.

 

But I guess that you don't like things to be clear and orderly. :undecided: Things not said will not be heard.

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...