Jump to content


Photo

Possible bug in BiG World Install.bat from BiG World Installpack v10.0


  • Please log in to reply
2 replies to this topic

#1 billy3

billy3
  • Member
  • 138 posts

Posted 15 September 2011 - 07:27 AM

Hey guys,

I was going through the BiG World Install.bat to add in "pause"'s so I could let it install to a point, then safely pause my VM, then continue it later (otherwise resuming the VM results in and error writing to the network drive I'm installing on since the network's not immediately connected).

I came across this snippet:

:RULESYST
%IFNS%fullplate%IFNIF%tb#tweaks.exe GOTO :MODLIST
%.%
%.%
%.%
%.%
%.%
%.%
:: rule system
%TXT%@39
%.%
%.%
%.%
%.%
%.%
set /P X=                         (FP)  -  (DD)  -  (FD)  . . .
%.%
if /I "%X%"=="FP" goto :FULLPLATE
if /I "%X%"=="DD" goto :DUNGDRAG
if /I "%X%"=="FD" goto :FULLDUNG
%.%
%.%
goto :MODLIST
%.%
%.%

:FULLPLATE
type NUL> BWP_FULLPLATE
%.%
%.%

:DUNGDRAG
type NUL> BWP_DUNGDRAG
%.%
%.%
:FULLDUNG
type NUL> BWP_FULLPLATE
type NUL> BWP_DUNGDRAG
%.%
%.%

:MODLIST

Notice how there's no "goto :MODLIST" after "type NUL> BWP_FULLPLATE" or "type NUL> BWP_DUNGDRAG", which results in both BWP_FULLPLATE and BWP_DUNGDRAG getting set.

It looks like it's a bug, but thought I'd ask in case it's deliberate due to some under-the-hood issue between the mods.

#2 billy3

billy3
  • Member
  • 138 posts

Posted 15 September 2011 - 10:04 AM

Also found this:

:WIDESCR
%NMAC% %IFNS%widescreen.exe goto :skipWide
%MAC% goto :skipWide
%.%
%.%
%.%
%.%
%.%
%.%
%.%
%.%
:: widescreen
%TXT%@48  
%.%
%.%
%.%
%.%
%.%
set /P X=                                   s(K)ip . . .
if /I "%X%"=="K" goto :skipWide
:start7
%.%
%.%
%.%
%.%
%.%
:: X coordinate
%TXT%@49
%.%
%.%
%.%
set /P X=
ECHO %X%> BWP_widescreen_input.txt
%.%
%.%
%.%
:: Y coordinate
%TXT%@50
%.%
%.%
%.%
set /P X=
ECHO %X%>> BWP_widescreen_input.txt
ECHO Y>> BWP_widescreen_input.txt
%.%
%.%
%.%
:: agree or skip widescreen
%TXT%@51
%.%
%.%
%.%
set /P X=                (W)idescreen  -  resi(Z)e  . . .

What is "set /P X=" happening twice? Isn't it supposed to "set /P Y=" the 2nd time?

#3 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 15 September 2011 - 08:44 PM

...
What is "set /P X=" happening twice? Isn't it supposed to "set /P Y=" the 2nd time?

Wel, you first set the X coordinate, and then you set the Y coordinate using the same function... the
set /P X=
... and then the last
ECHO Y>> BWP_widescreen_input.txt
Might confuse you, but it's just "Y" written at the end of the file, which is a yes to the question.

Deactivated account. The user today is known as The Imp.