Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error


Poll Question : Is the "_tmpChunk.DAT" Remover a usefull tool?
Choice Votes Statistics
  Yes
0
0 %
  No
0
0 %
  I don't care
0
0 %
  Total 0 100%
Guests can't vote. Try login or register.
Options
Go to last post Go to first unread
Offline acidbrain  
#1 Posted : Saturday, February 11, 2012 5:31:32 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Hey fellaz,

Here's an application to remove the "_tmpChunk.DAT" file from your Generals data map.
This file is generated when you use the Worldbuilder application and save your map.
I made it because the "_tmpChunck.DAT" file can cause scripts to execute
with errors, and i was a bit tired of removing them manually :P.
Check Here and Here
for more info about the "_tmpChunk.DAT" file.

When you startup Generals Worldbuilder a DOS window pops up with the message
that the Worldbuilder is running.

When you close Worldbuilder the application searches for the "_tmpChunk.DAT"
file and gives a message if it's deleted or not found.

When the message is shown the application closes after 3 seconds.

It's my first DOS application so if you see stuff that can be done better
please let me know.

If you have questions you know where to find me.

;--------------------------------------------------------------------------------------------------------
Here's the DOS program:

Generals
Code:

@ECHO OFF

MODE CON: COLS=48 LINES=5

TITLE WB "_tmpChunk.DAT" Remover (by acidbrain)

START "" "worldbuilder.exe"

COLOR 0C

  ECHO.

  ECHO            Worldbuilder is running

  ECHO.


:: This loop checks if Generals Worldbuilder is active.

 :active

    tasklist|>nul find /i "worldbuilder.exe"

    IF ERRORLEVEL 1 (

      GOTO check

    ) ELSE (

      >nul ping -n 2 0.0.0.0

      GOTO active

    )


:: This loop checks if "_tmpChunk.DAT" exists, generates a message and closes the application after 3 seconds.

 :check

    IF EXIST "%USERPROFILE%\Documents\Command and Conquer Generals Data\_tmpChunk.DAT" (

    DEL "%USERPROFILE%\Documents\Command and Conquer Generals Data\_tmpChunk.DAT"

      CLS

      COLOR 0C

        ECHO.

        ECHO           _tmpChunk.DAT deleted

        ECHO.

      FOR /l %%a in (3,-1,1) do (TITLE %title% -- closing in %%as&ping -n 2 -w 1 127.0.0.1>NUL)

      TITLE Press any key to close the application&ECHO.&GOTO:EOF

    ) ELSE (

      CLS

      COLOR 0C

        ECHO.

        ECHO         _tmpChunk.DAT does not exist

        ECHO.

      FOR /l %%a in (3,-1,1) do (TITLE %title% -- closing in %%as&ping -n 2 -w 1 127.0.0.1>NUL)

      TITLE Press any key to close the application&ECHO.&GOTO:EOF

    )


Zero Hour
Code:

@ECHO OFF

MODE CON: COLS=50 LINES=5

TITLE ZH WB "_tmpChunk.DAT" Remover (by acidbrain)

START "" "worldBuilder.exe"


COLOR 0C

  ECHO.

  ECHO            Worldbuilder is running

  ECHO.


:: This loop checks if Generals Worldbuilder is active.

 :active

    tasklist|>nul find /i "worldbuilder.exe"

    IF ERRORLEVEL 1 (

      GOTO check

    ) ELSE (

      >nul ping -n 2 0.0.0.0

      GOTO active

    )


:: This loop checks if "_tmpChunk.DAT" exists, generates a message and closes the application after 3 seconds.

 :check

    IF EXIST "%USERPROFILE%\Documents\Command and Conquer Generals Zero Hour Data\_tmpChunk.DAT" (

    DEL "%USERPROFILE%\Documents\Command and Conquer Generals Zero Hour Data\_tmpChunk.DAT"

      CLS

      COLOR 0C

        ECHO.

        ECHO           _tmpChunk.DAT deleted

        ECHO.

      FOR /l %%a in (3,-1,1) do (TITLE %title% -- closing in %%as&ping -n 2 -w 1 127.0.0.1>NUL)

      TITLE Press any key to close the application&ECHO.&GOTO:EOF

    ) ELSE (

      CLS

      COLOR 0C

        ECHO.

        ECHO         _tmpChunk.DAT does not exist

        ECHO.

      FOR /l %%a in (3,-1,1) do (TITLE %title% -- closing in %%as&ping -n 2 -w 1 127.0.0.1>NUL)

      TITLE Press any key to close the application&ECHO.&GOTO:EOF

    )

;-----------------------------------------------------------------------------------------------------------
Copy/paste the code into a text-file, save as a .bat-file and create a shortcut to the .bat file.
You can put the shortcut on your desktop and the batch file in your game directory.


If you don't want all those fancy windows to pop up use this code.
Generals
Code:

START "" /WAIT "WorldBuilder.exe" 

DEL "%USERPROFILE%\Documents\Command and Conquer Generals Data\_tmpChunk.DAT"

Generals Zero Hour
Code:

START "" /WAIT "WorldBuilder.exe" 

DEL "%USERPROFILE%\Documents\Command and Conquer Generals Zero Hour Data\_tmpChunk.DAT"

Select the shortcut to the .bat file and go to properties than select "run minimized', this will hide the cmd screen.
.
Thanks to =Hawkeye= and Zeke from the Mystique Game Studios Forum for their feedback.
Have fun... :D

Greetz, acidbrain

Edited by user Friday, February 17, 2012 10:50:43 PM(UTC)  | Reason: Not specified

acidbrain attached the following image(s):
Messages.jpg
Start Generals WB.JPG
Panem et kirkinses
Sponsor
Offline i^love^mixery  
#2 Posted : Saturday, February 11, 2012 6:18:59 AM(UTC)
i^love^mixery
Colonel
Joined: 10/13/2008(UTC)
Posts: 782

Thanks: 7 times
Was thanked: 201 time(s) in 147 post(s)
first off im not going to run a .bat who somebody else made.. ever.
second: in almost 1 decade of scripting for zero hour i have never deleted any tmp chunk from any directory of those games and i have never noticed any script which suddenly stopped working.

what bug/script are you talking about? some further info would be nice. so long i cant really decide if this is useful or not..
Offline acidbrain  
#3 Posted : Saturday, February 11, 2012 7:01:23 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
i^love^mixery wrote:
first off im not going to run a .bat who somebody else made.. ever.
second: in almost 1 decade of scripting for zero hour i have never deleted any tmp chunk from any directory of those games and i have never noticed any script which suddenly stopped working.

what bug/script are you talking about? some further info would be nice. so long i cant really decide if this is useful or not..


Check Here and Here
for more info about the "_tmpChunk.DAT" file.

The .bat file is free for you to adjust, you can make a testfolder to run it on first.

Edited by user Saturday, February 11, 2012 7:33:12 AM(UTC)  | Reason: Not specified

Panem et kirkinses
Offline NewNightmare  
#4 Posted : Saturday, February 11, 2012 9:15:22 AM(UTC)
NewNightmare
Colonel
Joined: 5/24/2010(UTC)
Posts: 492

Was thanked: 48 time(s) in 40 post(s)
Never seen this file cause any errors, bugs or any other random stuff in the game, and when opened in notepad, at the bottom, you can read it mentions all the stuff about recent map I think (spoiler shows tmpchunk for a map with few US transport jets in the map), and some of their weird properties.

Edited by user Saturday, February 11, 2012 9:33:19 AM(UTC)  | Reason: Not specified

Offline acidbrain  
#5 Posted : Saturday, February 11, 2012 8:03:39 PM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
Like i said:"it can cause problems".
You are free to use it or not but in my honest opinion you have to exclude every possible factor that can cause trouble in the game and thats why i made this tool.
Here is some more info about batchfiles.
If you want some more info about the program itself just let me know and i'll give a more detailed explanation.
I've tested it thoroughly and if you put in the right paths for your system there's really nothing to worry about.

Greetz, acidbrain

Edited by user Saturday, February 11, 2012 8:18:33 PM(UTC)  | Reason: Not specified

Panem et kirkinses
Offline i^love^mixery  
#6 Posted : Sunday, February 12, 2012 1:31:32 AM(UTC)
i^love^mixery
Colonel
Joined: 10/13/2008(UTC)
Posts: 782

Thanks: 7 times
Was thanked: 201 time(s) in 147 post(s)
so this is only for generals, not zero hour, right?
Offline acidbrain  
#7 Posted : Sunday, February 12, 2012 2:20:11 AM(UTC)
acidbrain
General
Joined: 12/30/2011(UTC)
Posts: 982

Thanks: 95 times
Was thanked: 574 time(s) in 364 post(s)
It can easily be adjusted for Zero Hour.
See first post.

Greetz, acidbrain

Edited by user Thursday, February 16, 2012 12:21:34 AM(UTC)  | Reason: Not specified

Panem et kirkinses
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.