Author Topic: [SOLVED] Parsed error with WeiDU 240.02  (Read 403 times)

Offline Gwendolyne_FP

  • Planewalker
  • *****
  • Posts: 38
[SOLVED] Parsed error with WeiDU 240.02
« on: June 21, 2017, 06:50:08 AM »
I recently digged up an old component that WeiDU installed fine a few years ago, but that produces parsed error with new WeidU version:
Code: [Select]
ACTION_DEFINE_ASSOCIATIVE_ARRAY GW_Food_Intoxications BEGIN
// Durée   CON STR DEX INT CHA DI1 DI2   Slow Fatg1 Fatg2 RM Mes   Color no_sorts Dégâts   Int. Suite   Time/% => Sort
//    (6) (4) (5) (7) (9) 1   1 1 2
//---0 ---- 1 - 2 - 3 - 4 - 5 - 6 - 7 ----- 8 - 9 ---- 10 - 11 - 12 --- 13 --- 14 ---- 15 ---- 16 --- 17 ----- 18 ---------------------------------------------------
300, 0, 0, 0, 0, 0, 1, 2, 0, 0, 0, 3, INT, INT, N, N, 0, N, 0 => GWDis11T // Intoxication (1 T) : 1 HP / s.
120, 0, 0, 4, 4, 0, 0, 0, 1, 0, 0, 3, VER, VER, N, N, 0, N, 0 => GWDis22T // Vertiges et migraines (2 T) : DEX-INT (-4) - Lenteur.
300, 2, 2, 6, 0, 0, 0, 0, 1, 4, 0, 3, INT, ALL, N, N, 0, N, 0 => GWDis31H // Convulsions et abattement (1 H) : DE (-6) - CO-ST (-2) - Lenteur - Fatigue (+4).
300, 2, 2, 2, 0, 2, 1, 2, 0, 0, 0, 3, ALL, ALL, N, N, 0, N, 0 => GWDis61H // Allergie (1 H) : 1 HP / s - ST-DE-CO-CHA (-2).
300, 2, 2, 2, 0, 2, 12, 3, 1, 0, 0, 3, NAU, NAU, N, N, 0, N, 0 => GWDis71H // Syndrome gastro-intestinal - Nausées et diarrhées (1 H) : 1 HP / 12 s - ST-DE-CO-CHA (-2) - Lenteur.
7200, 2, 2, 2, 0, 2, 0, 0, 1, 0, 0, 0, NAU, NAU, Y, GW012D01, 60, N, 0 => GWDis81J // Syndrome gastro-intestinal - Nausées, diarrhées  et vomissements (24 H) : 1 HP / T - ST-DE-CO-CHA (-2) - Lenteur.
300, 2, 2, 2, 0, 0, 12, 3, 1, 4, 0, 3, OCC, OCC, N, N, 0, N, 0 => GWDOcclu // Occlusion intestinale (1 H) : 1 HP / 12 s - ST-DE-CO (-2) - Lenteur - Fatigue (+4).
7200, 4, 4, 4, 2, 4, 0, 0, 1, 150, 2, 0, NAU, NAU, Y, GW012D10, 60, GWPHALJ3, 7200 => GWPhalJ1 // Syndrome phalloïdien (90 % mortel) - Nausées et diarrhées (1 J) : 10 HP / T - ST-DE-CO-CHA (-4) - IN (-2) - Lenteur - Fatigue (150 %).
7200, 5, 5, 5, 5, 5, 0, 0, 1, 200, 2, 0, REM, NAU, Y, N, 0, GWPHALJ4, 0 => GWPhalJ3 // Syndrome phalloïdien (90 % mortel) - Convulsions et abattement (1 J) : ST-DE-CO-CHA-IN (-5) - Lenteur - Fatigue (200 %).
7200, 2, 2, 2, 2, 2, 0, 0, 1, 200, 2, 0, HEM, NAU, y, GWPF1, 6, GWFDMORT, 90 => GWPhalJ4 // Syndrome phalloïdien (90 % mortel) - Hémorragie (1 J) : 1 HP / Rd - ST-DE-CO-CHA-IN (-2) - Lenteur - Fatigue (200 %).
3600, 3, 3, 3, 2, 2, 0, 0, 1, 150, 2, 0, NAU, NAU, Y, GW012D10, 60, GWPHAMJ3, 3600 => GWPhaMJ1 // Syndrome phalloïdien (10 % mortel) - Nausées et diarrhées (12 H) : 10 HP / T - ST-DE-CO (-3) - CHA-IN (-2) - Lenteur - Fatigue (150 %).
3600, 3, 3, 3, 3, 3, 0, 0, 1, 150, 2, 0, REM, NAU, Y, N, 0, GWPHAMJ4, 0 => GWPhaMJ3 // Syndrome phalloïdien (10 % mortel) - Convulsions et abattement (12 H) : ST-DE-CO-CHA-IN (-3) - Lenteur - Fatigue (150 %).
7200, 2, 2, 2, 2, 2, 0, 0, 1, 150, 2, 0, HEM, NAU, Y, GWPF1, 30, GWFDMORT, 10 => GWPhaMJ4 // Syndrome phalloïdien (10 % mortel) - Hémorragie (1 J) : 1 HP / 5 Rds - ST-DE-CO-CHA-IN (-2) - Lenteur - Fatigue (150 %).
7200, 4, 4, 5, 2, 4, 0, 0, 1, 200, 2, 0, VND, NAU, Y, GW012D10, 60, GWGYROJ2, 0 => GWGyroJ1 // Syndrome gyromitrien (1 % mortel) - Vertiges, migraines, nausées et diarrhées (1 J) : 10 HP / T - ST-CO-CHA (-4) - DE (-5) - IN (-2) - Lenteur - Fatigue (200 %).
3600, 3, 3, 4, 2, 3, 0, 0, 1, 150, 2, 0, VND, NAU, Y, GW012D01, 60, GWGYROJ3, 0 => GWGyroJ2 // Syndrome gyromitrien (1 % mortel) - Vertiges, migraines, nausées et diarrhées (12 H) : 1 HP / T - ST-CO-CHA (-3) - DE (-4) - IN (-2) - Lenteur - Fatigue (150 %).
3600, 2, 2, 3, 2, 2, 0, 0, 1, 150, 2, 0, VND, NAU, N, N, 0, GWFDMORT, 1 => GWGyroJ3 // Syndrome gyromitrien (1 % mortel) - Vertiges, migraines, nausées et diarrhées (12 H) : ST-CO-CHA-IN (-2) - DE (-3) - Lenteur - Fatigue (150 %).
7200, 3, 3, 4, 2, 3, 0, 0, 1, 150, 2, 0, VND, NAU, Y, GW012D01, 60, GWCORTJ3, 0 => GWCortJ2 // Syndrome orellanien (5 % mortel) - Vertiges, migraines, nausées et diarrhées (1 J) : 1 HP / T - ST-CO-CHA (-3) - DE (-4) - IN (-2) - Lenteur - Fatigue (150 %).
7200, 2, 2, 3, 2, 2, 0, 0, 1, 150, 2, 0, VND, NAU, Y, GW012D01, 30, GWFDMORT, 5 => GWCortJ4 // Syndrome orellanien (5 % mortel) - Vertiges, migraines, nausées et diarrhées (1 J) : 1 HP / 5 Rds - ST-CO-CHA-IN (-2) - DE (-3) - Lenteur - Fatigue (150 %).
300, 2, 2, 2, 2, 2, 0, 0, 1, 200, 0, 0, VND, NAU, Y, GW012D01, 30, GWMUSC3, 0 => GWMusc2 // Syndrome panthérinien - Vertiges, nausées, diarrhées, larmoiements (1 H) : 1 HP / 5 Rds - ST-DE-CO-IN-CHA (-2) - Lenteur - Fatigue (150 %) - Cécité.
END

If I comment those lines
Code: [Select]
7200, 5, 5, 5, 5, 5, 0, 0, 1, 200, 2, 0, REM, NAU, Y, N, 0, GWPHALJ4, 0 => GWPhalJ3 // Syndrome phalloïdien (90 % mortel) - Convulsions et abattement (1 J) : ST-DE-CO-CHA-IN (-5) - Lenteur - Fatigue (200 %).
3600, 3, 3, 3, 3, 3, 0, 0, 1, 150, 2, 0, REM, NAU, Y, N, 0, GWPHAMJ4, 0 => GWPhaMJ3
OR Change them with

Code: [Select]
7200, 5, 5, 5, 5, 5, 0, 0, 1, 200, 2, 0, RSN, NAU, Y, N, 0, GWPHALJ4, 0 => GWPhalJ3 // Syndrome phalloïdien (90 % mortel) - Convulsions et abattement (1 J) : ST-DE-CO-CHA-IN (-5) - Lenteur - Fatigue (200 %).
3600, 3, 3, 3, 3, 3, 0, 0, 1, 150, 2, 0, RSN, NAU, Y, N, 0, GWPHAMJ4, 0 => GWPhaMJ3

Everything runs fine. In other words, WeiDU seems to consider "REM" as an instruction or something else and stops the process. Is it the case?

Edit: I didn't try with WeiDU 241.
« Last Edit: June 21, 2017, 03:59:20 PM by Gwendolyne_FP »

Offline Argent77

  • Planewalker
  • *****
  • Posts: 165
Re: Parsed error with WeiDU 240.02
« Reply #1 on: June 21, 2017, 06:57:06 AM »
WeiDU 241 introduced the MODULO operator which uses REM as synonym.

Edit: You can probably keep the entries as long as you enclose the strings in quotes.
« Last Edit: June 21, 2017, 07:08:39 AM by Argent77 »

Offline Gwendolyne_FP

  • Planewalker
  • *****
  • Posts: 38
Re: Parsed error with WeiDU 240.02
« Reply #2 on: June 21, 2017, 03:58:45 PM »
Thanks. The quotes work fine.  :)
I read the MODULO definition but forgot its synonym.  :-[

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 992
Re: [SOLVED] Parsed error with WeiDU 240.02
« Reply #3 on: June 23, 2017, 07:27:52 AM »
It has always been the case that strings should either not be all upper case or be quoted.

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: