snv
Member LVL 1
Posts: 10
|
Post by snv on Aug 21, 2011 9:55:38 GMT -6
|
|
|
Post by Boaster on Aug 21, 2011 10:28:02 GMT -6
I've managed to get it to work here. D:\tools\LOMUT\lomut.exe D:/iface/deflagb.imp D:/iface/ It decompiled all the images as PCX. Pretty sweet!
|
|
|
Post by Boaster on Aug 21, 2011 11:43:30 GMT -6
It doesn't seem to be recompiling.
"Unsupported extension: 00-00-000.lbm" "Unsupported extension: 01-00-000.lbm" "Unsupported extension: 02-00-000.lbm" "Unsupported extension: 03-00-000.lbm" "Unsupported extension: 04-00-000.lbm" ...etc.…
|
|
snv
Member LVL 1
Posts: 10
|
Post by snv on Aug 21, 2011 12:57:41 GMT -6
It doesn't seem to be recompiling. "Unsupported extension: 00-00-000.lbm" "Unsupported extension: 01-00-000.lbm" "Unsupported extension: 02-00-000.lbm" "Unsupported extension: 03-00-000.lbm" "Unsupported extension: 04-00-000.lbm" ...etc.… Doesnt work with LBM. But it can convert them to/from PCX.
|
|
|
Post by Boaster on Aug 21, 2011 14:39:40 GMT -6
So how do I recompile? Let me know.
|
|
|
Post by Boaster on Aug 21, 2011 18:39:54 GMT -6
Nvm. I got it!
|
|
pikol
Member LVL 1
Posts: 14
|
Post by pikol on Sept 27, 2012 6:13:18 GMT -6
Hi there !
I am new member of your forum, and first of all I would like to congratulate you about your work!
Then as a developer, I need to get the sprites of this game so that I could use it to create a "remastered" LoM project.
I can see that you are able to get those sprites, using a soft (for linux I guess) but the link given for windows isn't good anymore.
I'll be happy if you could give me some "tips" to get those sprites myself!
Thanks
|
|
|
Post by Boaster on Sept 27, 2012 8:44:52 GMT -6
I've attached what I have as far as his utility goes. Attachments:
|
|
pikol
Member LVL 1
Posts: 14
|
Post by pikol on Sept 28, 2012 3:34:14 GMT -6
thanks a lot ! I'll test it once I've the time. I'll give you some news about my project in this forum.
|
|
|
Post by Boaster on Sept 28, 2012 6:00:47 GMT -6
thanks a lot ! I'll test it once I've the time. I'll give you some news about my project in this forum. Sounds good. I wish you luck. If you want input, just ask.
|
|
pikol
Member LVL 1
Posts: 14
|
Post by pikol on Sept 28, 2012 8:27:14 GMT -6
For those (like me) using Windows Command Line.
I give you the template Line Command to extract all the frames in a choosen directory automatically :
for %i in (yourPathWhereImpAre/*.imp) do (yourPathWhereLomutIs/lomut.exe yourPathWhereImpAre/%~ni%~xi yourDestinationPath/%~ni/)
And also I have a question : All the sprites of the game are in imp folder? Or there are others folders that contains sprites?
It could help me exctract all the frames and make a zip file that I could give here...
Thanks.
|
|
|
Post by Boaster on Sept 28, 2012 11:42:38 GMT -6
All sprites in LOM are found in IMP.mpq.
For every *.imp file there is a *.h file.
If it's an *.imp file, then it is a sprite.
If it is a *.lbm, then it is a flat graphic.
|
|
pikol
Member LVL 1
Posts: 14
|
Post by pikol on Sept 28, 2012 23:59:55 GMT -6
Thanks again for the answers !
So i managed to extract all the sprites located in Imp.
I can make a zip file with all the .pcx images if you want. Then i am converting all the .pcx images to transparent .png (x5 smaller) for external use only.
Is it interesting that i give both zip files here?
Note: i will be able to post them next monday only!
Thanks
|
|
|
Post by Boaster on Sept 30, 2012 7:20:39 GMT -6
Perhaps you can help with something pikol. I'm trying to create a batch file. I want it to be simple enough that anyone can just reproduce it or copy it themselves.
Things I would need:
LOMUT location (D:\tools\LOMUT\lomut.exe)
current file (CURRENT_FILE)
current directory (CURRENT_DIR)
example file name:
waldfa.imp and waldfa.h
if CURRENT_FILE file name (waldfa.imp) has *a.imp,
the extract contents to CURRENT_DIR\PCX\a
Hope this can be done.
|
|
pikol
Member LVL 1
Posts: 14
|
Post by pikol on Oct 2, 2012 3:54:50 GMT -6
I don't know if I understand well! I'll try to explain precisely what you want I understand: * Prompt User asking where is Lomut.exe ex => C:\Users\Pikol\Desktop\LOMUT\ * Prompt User asking where are .IMP files ex => C:\Users\Pikol\Desktop\MPQ\imp\ * Prompt User asking destination folder Then, I don't understand well this : if CURRENT_FILE file name (waldfa.imp) has *a.imp, the extract contents to CURRENT_DIR\PCX\a You mean for instance CURRENT_DIR\PCX\waldf\a ?
|
|
|
Post by Boaster on Oct 2, 2012 10:46:08 GMT -6
I don't know if I understand well! I'll try to explain precisely what you want I understand: * Prompt User asking where is Lomut.exe ex => C:\Users\Pikol\Desktop\LOMUT\ * Prompt User asking where are .IMP files ex => C:\Users\Pikol\Desktop\MPQ\imp\ * Prompt User asking destination folder In the batch file, the LOMUT.exe's location would already be declared by the user editing the batch file himself. In the batch file, the current files selected would be the IMP files that would be extracted. The same way if you were going to extract files from multiple ZIP or RAR files at the same time. This would be the basic premise of what I'm trying to do. You mean for instance CURRENT_DIR\PCX\waldf\a ? Yes.
|
|
pikol
Member LVL 1
Posts: 14
|
Post by pikol on Oct 3, 2012 9:05:03 GMT -6
Put this code in a .bat file, and tell me if it is something like that you want!
@echo off title Lomse Extract By Pikol REM set /p LOMUT_PATH= Enter LOMUT.EXE Path (ex C:\Users\Pikol\Desktop\LOMUT\): REM set /p IMP_PATH= Enter imp Source Folder Path (ex C:\Users\Pikol\Desktop\MPQ\imp\): REM set /p DEST_PATH= Enter Output Folder Path(ex C:\Users\Pikol\Desktop\myOutputFolder\):
REM Here you have to set the right lomut.exe PATH to make it work! set LOMUT_PATH = C:\Users\Pikol\Desktop\LOMUT\ set IMP_PATH = C:\Users\Pikol\Desktop\MPQ\imp\ set DEST_PATH = C:\Users\Pikol\Desktop\lomseTest\
for %%i in (%IMP_PATH%/aura/*.imp) do (%LOMUT_PATH%/lomut.exe %IMP_PATH%/aura/%%~ni%%~xi %DEST_PATH%/PCX/%%~ni/) for %%i in (%IMP_PATH%/building/*.imp) do (%LOMUT_PATH%/lomut.exe %IMP_PATH%/building/%%~ni%%~xi %DEST_PATH%/PCX/%%~ni/) for %%i in (%IMP_PATH%/iface/*.imp) do (%LOMUT_PATH%/lomut.exe %IMP_PATH%/iface/%%~ni%%~xi %DEST_PATH%/PCX/%%~ni/) for %%i in (%IMP_PATH%/imp/*.imp) do (%LOMUT_PATH%/lomut.exe %IMP_PATH%/imp/%%~ni%%~xi %DEST_PATH%/PCX/%%~ni/) for %%i in (%IMP_PATH%/missile/*.imp) do (%LOMUT_PATH%/lomut.exe %IMP_PATH%/missile/%%~ni%%~xi %DEST_PATH%/PCX/%%~ni/) for %%i in (%IMP_PATH%/units/*.imp) do (%LOMUT_PATH%/lomut.exe %IMP_PATH%/units/%%~ni%%~xi %DEST_PATH%/PCX/%%~ni/)
You just need to change this 3 variables :
set LOMUT_PATH = C:\Users\Pikol\Desktop\LOMUT\ set IMP_PATH = C:\Users\Pikol\Desktop\MPQ\imp\ set DEST_PATH = C:\Users\Pikol\Desktop\lomseTest\
With your Path
|
|
|
Post by Boaster on Oct 3, 2012 10:21:13 GMT -6
Yes, but how do you set the current path to the current folder, plus PCX/a?
Like for example, you current have folder "D:\images" opened. The current folder would be a dynamic variables based upon what folder the IMP file is being processed from.
Is this not possible?
|
|
pikol
Member LVL 1
Posts: 14
|
Post by pikol on Oct 4, 2012 1:02:03 GMT -6
YES ! I'll change it today (when I got the time)
|
|
pikol
Member LVL 1
Posts: 14
|
Post by pikol on Oct 4, 2012 3:38:52 GMT -6
Now it extracts all in the current folder!
But I'm sorry I didn't managed to make this extract path work : PCX/lastLetterOfImpFile/pcxFiles
I just managed to make this : PCX/impname/pcxFiles
If someone is good in windows batch files, I don't achieve to get the last letter of a .imp file.
Tried this
set filename = %%~ni set filename = %filename :~-1%
But it doesn't work... It seems the second command is wrong.
@echo off title Lomse IMP Extract Using LOMUT By Pikol REM set /p LOMUT_PATH= Enter LOMUT.EXE Path (ex C:\Users\Pikol\Desktop\LOMUT\): REM set /p IMP_PATH= Enter imp Source Folder Path (ex C:\Users\Pikol\Desktop\MPQ\imp\):
REM Here you have to set the right lomut.exe PATH to make it work! set LOMUT_PATH=C:\Users\Pikol\Desktop\LOMUT\ set IMP_PATH=C:\Users\Pikol\Desktop\MPQ\imp\ set DEST_PATH=%~dp0
for %%i in (%IMP_PATH%/aura/*.imp) do (%LOMUT_PATH%/lomut.exe %IMP_PATH%/aura/%%~ni%%~xi %DEST_PATH%/PCX/%%~ni/) for %%i in (%IMP_PATH%/building/*.imp) do (%LOMUT_PATH%/lomut.exe %IMP_PATH%/building/%%~ni%%~xi %DEST_PATH%/PCX/%%~ni/) for %%i in (%IMP_PATH%/iface/*.imp) do (%LOMUT_PATH%/lomut.exe %IMP_PATH%/iface/%%~ni%%~xi %DEST_PATH%/PCX/%%~ni/) for %%i in (%IMP_PATH%/imp/*.imp) do (%LOMUT_PATH%/lomut.exe %IMP_PATH%/imp/%%~ni%%~xi %DEST_PATH%/PCX/%%~ni/) for %%i in (%IMP_PATH%/missile/*.imp) do (%LOMUT_PATH%/lomut.exe %IMP_PATH%/missile/%%~ni%%~xi %DEST_PATH%/PCX/%%~ni/) for %%i in (%IMP_PATH%/units/*.imp) do (%LOMUT_PATH%/lomut.exe %IMP_PATH%/units/%%~ni%%~xi %DEST_PATH%/PCX/%%~ni/)
echo Extract Finished! Pause
|
|