| Blockland Forums > General Discussion |
| My MSDOS Brick builder |
| (1/7) > >> |
| MARBLE MAN:
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: ---@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 --- End code --- 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.. |
| 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 |
| curiosblockland6:
--- Quote from: MARBLE MAN on June 07, 2012, 01:46:19 PM ---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 --- End quote --- Was this really necisarry? |
| MARBLE MAN:
--- Quote from: curiosblockland6 on June 07, 2012, 02:37:46 PM ---Was this really necisarry? --- End quote --- This wasn't necessary. I couldn't help myself >.< |
| Tyler66:
Erm, MS-DOS is an operating system. What you have there is batch script. |
| Navigation |
| Message Index |
| Next page |