You are not logged in.

#1 2013-02-22 18:33:29

Jindur
Member
Registered: 2011-09-29
Posts: 184

How to make .bat demo work? [SOLVED]

I got http://www.scene.org/file.php?file=%2Fp … p&fileinfo "Panoptriptikum" and want to run it in wine.
The file will "start", in the sense that the cursor hangs at the dos prompt and nothing is happening except for 100% cpu load. I waited for 5 minutes or so until i ctrl+c'ed.
Any idea how to make it work?

Last edited by Jindur (2013-02-25 03:20:42)

Offline

#2 2013-02-22 21:35:50

doorknob60
Member
Registered: 2008-09-29
Posts: 403

Re: How to make .bat demo work? [SOLVED]

It must be a different kid of .bat file, because I downloaded it, and it doesn't look like a DOS batch file. It won't open in any text editor for me, which a batch file should (they are the Windows/DOS equivalent of bash scripts, basically. Not binaries.) But I can't think of what it could be, and all Google results talk about Win/DOS batch files. Either that or it's a corrupt file. If it was a valid file though, Wine should work, and Dosbox is another potential option, depending on what it does,

Last edited by doorknob60 (2013-02-22 21:37:40)

Offline

#3 2013-02-22 21:43:11

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: How to make .bat demo work? [SOLVED]

It kinda does look similar to self-extracting shell scripts like some proprietary software uses as installers. The beginning of the file looks like this:

set t=%temp%\x.exe
del %t%
extrac32 %0 %t%
%t%
del %t%
exit

and the rest is a bunch of binary data. Perhaps you could find out what extrac32 does and unpack this manually, but you are better off with just running it in Windows.


'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard

Offline

#4 2013-02-22 21:44:33

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,839
Website

Re: How to make .bat demo work? [SOLVED]

It's a self-extracting bat file, like the occasional .run file you come across in the Linux world (nvidia ship their linux driver as one)
It runs:

$ head -8 panoptriptikum.bat
MSCF204Î, $|Pý

set t=%temp%\x.exe
del %t%
extrac32 %0 %t%
%t%
del %t%
exit

So I guess you need extrac32 on wine (I have no idea whether it comes with it or not)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#5 2013-02-22 21:48:58

kaszak696
Member
Registered: 2009-05-26
Posts: 543

Re: How to make .bat demo work? [SOLVED]

Cabextract from the repos seems to extract this file just fine, but of course wine glitches out on it.


'What can be asserted without evidence can also be dismissed without evidence.' - Christopher Hitchens
'There's no such thing as addiction, there's only things that you enjoy doing more than life.' - Doug Stanhope
GitHub Junkyard

Offline

#6 2013-02-23 02:08:28

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: How to make .bat demo work? [SOLVED]

So what is that file even supposed to do? I ran it in Windows but it tries interpreting the binary data as a command and fails.

Offline

#7 2013-02-25 01:13:00

Jindur
Member
Registered: 2011-09-29
Posts: 184

Re: How to make .bat demo work? [SOLVED]

anonymous_user wrote:

So what is that file even supposed to do? I ran it in Windows but it tries interpreting the binary data as a command and fails.

It's a "demo", a demonstration by a coder group of their skills, being able to create an audiovisual tech demo in the form of a self-extracting executable program binary.
More specifically a 4kB demo in this case, so the demo competition challenge was to create the best demos you can within a program size limit of 4kB (the panoptricum.bat file is 4kB in size).

One of the most popular groups is "Farbrausch", who managed to create a whole "Quake" like game with a big level, sounds, weapons and monsters within a total program size of merely 96kB, it was named "kkrieger":
http://web.archive.org/web/201107170242 … m/kkrieger

Many demos/groups can be found on http://pouet.net/ .

kaszak696 wrote:

Cabextract from the repos seems to extract this file just fine, but of course wine glitches out on it.

Awesome! Cabextract from pacman repo worked, although it created a folder that was *named* "set %temp% =...", really weird xD. Inside of that folder there was a similarly badly named executable which I just renamed to "p.exe" and ran it with wine, and it works!

Last edited by Jindur (2013-02-25 01:19:21)

Offline

Board footer

Powered by FluxBB