i think i found a typo error in zscript !

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: i think i found a typo error in zscript !

Re: i think i found a typo error in zscript !

by Rachael » Thu Nov 23, 2023 10:51 am

It's already been corrected.

As Hastig pointed out ultimately it does not affect anything, it just looks bad. And thus the extra semicolons were already removed. But nothing is negatively affected if they are there.

Re: i think i found a typo error in zscript !

by Jacob324 » Thu Nov 23, 2023 7:45 am

The code defines three different classes in the game, namely BlueTorch, ShortGreenColumn, and HeadsOnAStick. The mistake in the code is the presence of "Height 68;;" in the BlueTorch class, where there should be only one semicolon. The file doomdecorations.zs contains three typos in total, all of them having double semicolons (;;), which may affect the game

Re: i think i found a typo error in zscript !

by dremor8484 » Tue Sep 19, 2023 1:23 pm

Rachael wrote: Tue Sep 19, 2023 5:29 am
Professor Hastig wrote: Tue Sep 19, 2023 3:30 am They are completely harmless, though.
Maybe, but they look bad. I'm going to go after them.

and fixed
sorry rachael, if i did not think about it early but: a few minutes ago i used notepad++ search file function and also found these two other typos:

gzdoom\zscript\actors\inventory\powerups.zs (1 hit)
Line 958: Owner.Vel.Z = 4;; // thrust the player in the air a bit

gzdoom\zscript\ui\statscreen\statscreen.zs (1 hit)
Line 151: wrapwidth = wrapw == -1 ? width : wrapw;;

---
i tried to search in a detailed way, using *.*
and other than these two remaining typos i found no other programming code with that "problem"

Re: i think i found a typo error in zscript !

by Rachael » Tue Sep 19, 2023 5:29 am

Professor Hastig wrote: Tue Sep 19, 2023 3:30 am They are completely harmless, though.
Maybe, but they look bad. I'm going to go after them.

and fixed

Re: i think i found a typo error in zscript !

by Professor Hastig » Tue Sep 19, 2023 3:30 am

They are completely harmless, though.

i think i found a typo error in zscript !

by dremor8484 » Tue Sep 19, 2023 3:18 am

// Blue torch --------------------------------------------------------------

class BlueTorch : Actor
{
Default
{
Radius 16;
Height 68;;
ProjectilePassHeight -16;
+SOLID
}
States
{
Spawn:
TBLU ABCD 4 BRIGHT;
Loop;
}
}

// Short green column ------------------------------------------------------

class ShortGreenColumn : Actor
{
Default
{
Radius 16;
Height 40;;
ProjectilePassHeight -16;
+SOLID
}
States
{
Spawn:
COL2 A -1;
Stop;
}
}

// Heads (plural!) on a stick ----------------------------------------------

class HeadsOnAStick : Actor
{
Default
{
Radius 16;
Height 64;;
ProjectilePassHeight -16;
+SOLID
}
States
{
Spawn:
POL2 A -1;
Stop;
}
}


Height 68;; <-- this the mistake, not sure if it does affect the game but hey !
file: doomdecorations.zs
found 3 typos, having ;; instead of ;

Top