Author Topic: My MSDOS Brick builder  (Read 2729 times)

I was bored and wanted to make a brick pack...
I was lazy in a way that i had to make a brick builder to make my 3x brick pack....
Soooo i wrote (in the most basic code ever) a brick builder!!!
If you take out the "modifier" REMs,  you can make all the bricks you make any times larger

All you need to do is enter what it tells you to do
X Y and Z are the variables for the brick
This doesn't make ramps or any special bricks...
By using this code (if you could call it that), I am not responsible for any computer problems you may have...

Go crazy, you can fill out all the entries with "snake" if you want to....
FYI All file info will be packed (server.cs, blb files, description, namecheck) all into a folder... MAKE SURE you compress the files into a zip with the name of the folder....

Here you go:
Code: [Select]
@echo OFF
@title MARBLE MAN's BRICK MAKER
set /p inf1=Name of bricks
set LOCATION=Brick_%inf1%
md %LOCATION%
set /p inf2=Your Alias
set /p inf3=BL_ID
set /p inf4=Brick Description
echo Name: %inf1% >> %LOCATION%\description.txt
echo Author: %inf2% >> %LOCATION%\description.txt
echo BL_ID: %inf3% >> %LOCATION%\description.txt
echo Description:  >> %LOCATION%\description.txt
echo %inf4% >> %LOCATION%\description.txt
echo Brick_%inf1% >> %LOCATION%\namecheck.txt
echo README: >> README.txt
echo Please compress all the files into "Brick_%inf1%.zip" otherwise this will not work!!! >> README.txt
echo Thank you for using MARBLE MAN's MSDOS Brick maker! >> README.txt
echo //MADE WITH MARBLE MAN'S BRICK BUILDER >> %LOCATION%\server.cs
set /p cat=Category
REM set /p mod=Modifier (1 if none)
echo Use Brick Icons? (named the same as the brick)
echo 1 - Yes
echo 2 - No
set /p brickicon=
:loop
set ex=x
set open={
set close=};
cls
set /p sub=SubCategory
set /p x=X
set /p y=Y
set /p z=Z
REM set /a x=%mod%*%x%
REM set /a y=%mod%*%y%
REM set /a z=%mod%*%z%
if "%z%" == "1" goto flatbrick
set brick=%x%%ex%%y%%ex%%z%
echo %x% %y% %z% > %LOCATION%\%brick%.blb
echo BRICK >> %LOCATION%\%brick%.blb
goto end

:flatbrick
set brick=%x%%ex%%y%F
echo %x% %y% 1 > %LOCATION%\%brick%.blb
echo BRICK >> %LOCATION%\%brick%.blb
goto end

:end
REM SERVER.CS STUFF
echo datablock fxDTSBrickData(brick%brick%Data) >> %LOCATION%\server.cs
echo %open% >> %LOCATION%\server.cs
echo BrickFile = "./%brick%.blb"; >> %LOCATION%\server.cs
echo category = "%cat%"; >> %LOCATION%\server.cs
echo subCategory = "%sub%"; >> %LOCATION%\server.cs
echo uiName = "%brick%"; >> %LOCATION%\server.cs
if "%brickicon%" == "1" echo IconName = "Add-ons/Brick_%inf1%/%brick%"; >> %LOCATION%\server.cs
echo %close% >> %LOCATION%\server.cs
REM SERVER.CS STUFF
echo brick done!
echo.
echo BRICK
echo.
type %LOCATION%\%brick%.blb
echo.
echo SERVER
echo.
type %LOCATION%\server.cs
echo.
pause >nul
goto loop
copy and paste the code into note pad and save as "BrickBuilder.bat" to make this work....

Tell me what you think (please don't rate)
There are some bugs... I really don't care if you point them out..
« Last Edit: June 07, 2012, 01:43:13 PM by MARBLE MAN »

If you really wanted a snake brick, here it is
http://www.mediafire.com/?53agzvm13i028a1
It wont work, but it would be funny as a Rick roll like thing

If you really wanted a snake brick, here it is
http://www.mediafire.com/?53agzvm13i028a1
It wont work, but it would be funny as a Rick roll like thing
Was this really necisarry?

Was this really necisarry?
This wasn't necessary.
I couldn't help myself >.<



Erm, MS-DOS is an operating system.

What you have there is batch script.

Was this really necisarry?

Is you posting on the forums "necisarry"?

Erm, MS-DOS is an operating system.

What you have there is batch script.
Windows was run from MS-DOS and used command.com to run .bat files

You are right in a way..
I know it is batch :P

Windows was run from MS-DOS

yeah windows 1-3 was

we're in the days of windows 7 now

Could someone make me one that generates bricks in SPECIAL format maybe?

also; pretty cool
« Last Edit: June 08, 2012, 05:50:18 AM by Conservative »

yeah windows 1-3 was

we're in the days of windows 7 now

I'm still an XP junkie. :P

I'm still an XP junkie. :P

Uh, and? XP is way after Windows 3.

Uh, and? XP is way after Windows 3.

I know, but i don't use 7. In fact I don't really like it (I use it in school).

I know, but i don't use 7. In fact I don't really like it (I use it in school).

Xp > 7 and 8