MODSonline
  Welcome Guest to MODSonline Home | Forums | Register | Login
Main-Menu
Home
Login
Register
Add Download
Add News
Add Tutorial *
Forums

Advertise
Affiliate Store US *
Affiliate Store UK *
Affiliate Store CA *
Angry Letter Generator
Avatar Upload
Calendar of Games
Contact
Downloads
FAQs
Forums
Member List
Member Projects
News
News Grabber
Policy
Polls
Private Messages
Reviews
Screenshot Gallery
Rules
Search
Servers - Game
Store - Shirts *
Subscribe
Topics
Tutorials
Weblinks
Wiki *
Tutorials
CoD Mapping
CoDUO Mapping
CoD2 Mapping
CoD4 Mapping
CoDWW Mapping
CoD FAQs
CoD Wiki

HL2 Mapping
L4D Mapping
HL2 FAQs

SoF1 Mapping
SoF2 Mapping
SoF2 FAQs

Crysis Mapping

Q4 Mapping
Doom 3 Mapping
Doom 3 FAQs

UT2K3 Mapping

Lightray Modeling
General Modeling
General Modding
Adobe Photoshop
Common Mapping Errors

Readme.txt Generator
Members-Online
Morphisnb [Today]
chrbos [Forum]
vT-Ownage [Forum]
NokiX [Forum]
Welshy [Today]
StrYdeR [Today]

6 Members and 16 Guests
Chat MODSonline
0 People Now Chatting
MODSOnline TeamSpeak

download TeamSpeak

In-The-News
Saturday, Jul. 4th
CustomCOD : What Happened An explanation
Friday, Jul. 3rd
MODSonair Episode 186
Sunday, Jun. 28th
MODSonair 186 LIVE
Friday, Jun. 26th
MODSonair Episode 185
Monday, Jun. 22nd
Through The Fire and Flames on Drums
Latest Poll
Will you be switching to Windows 7?
I already pre-ordered my copy. 4.41%
Looking forward to 32 bit. 8.82%
Looking forward to 64 bit. 25%
Waiting for the everyone else to beta the new OS. 8.82%
I'm sticking with my trusted copy of XP. 51.47%
Screw Windows, I'm on [insert other OS here]. 1.47%
Read More...
8 comments

Your Membership
User Name:
Password:
Register.
In The Forums
CustomCOD : What Happened An explanation
CoD:WW General G.. Posts: (20) Views: (195) by StrYdeR
Model lights are overriding!
HL2 Level Design.. Posts: (2) Views: (9) by Welshy
dawnville
CoD:WW Custom Ma.. Posts: (19) Views: (402) by COLMAC
electro shock defenses
CoD:WW Zombie/Co.. Posts: (6) Views: (69) by techno2sl
Google 468 Banner Half-Life 2 Mods for Dummies
CoDWW Download
Tutorials: SOF1 Mapping
Mapping and modding for Soldier of Fortune.
Add your tutorial (registered users)

Rating:
Awful Rating Poor Rating Average Rating Good Rating Excellent Rating
Versions: You must be logged in to view history.
Compiling
2006-10-20 16:15:56
Learn how to compile your map.
The first thing you need to learn is how to compile a ds script into an os file.

To begin scripting - you can follow this tutorial for setting up the compiler -

http://www.modsonline.com/Tutorials-read-24.html

Or - do the following... (my method which I think is a bit easier to understand)

-----------------------------------------------------

Look inside the SDK folder and find the folder called "Sample"
copy the sdk/sample folder to the root of your drive which is usually c:/

you now have the folder c:\sample

In the c:\sample\ds folder - make a new folder called "test"
Copy the SoFDS.exe file from the SDK\bin directory into this folder

This is where it all happens - in c:\sample\ds\test folder

Now, You open or create ds files with notepad- and you save them in notepad with a ds file extension - test.ds (for example)

Make yourself a blank script by opening any tsr1 script (included in SoFSDK/sample\ds\tsr1 folder ) and deleting everything except the first 2 lines

The first line just sets up commands to use and is always present in every script you will make

If you look at the 2nd line of the blank script - this is the output directory for the OS

Set it to output to the same folder ie c:\sample\ds\test (or any other folder you choose) by changing the lines to this...

#include "../common/header.ds"
output "C://sample/ds/test"


Notice the double // - make sure these are present in the line or sometimes the script will not compile

When you have a script to compile - ie you have a ds file in the c:\sample\ds\test folder - then do the following...

You need to open a "command prompt" window - you may know this as a "dos box"

There is an icon for it in Windows if you press the start button and look in "All Programs/Accessories" or you can go to START/RUN and type CMD and then press ENTER


In the box - type...

cd c:\sample\ds\test

(to change to the directory)

if the ds file is called test.ds - you then type

sofds test

If the ds file is called teleport.ds then you would have typed
sofds teleport

etc

You will then see the processes taking place in the window - and test.os should appear in your output folder
OS files are binary and cannot be edited in Notepad

That's it! - simple and easy

The method in Modsonline of making a compile.bat file is purely to automate this so it contains the same commands....ie

cd c:\sample\ds\test
sofds test

...though you may notice that each time you use this you need to change "test" to match the name of your new script - and it also does not show the processes at work so you cannot see if an error has occurred - I never use this method

To test this out and see if you can compile correctly - try compiling one of the sample ds scripts from tsr1 - The only thing you need to change is the output directory as explained above

If it compiles into an os file - you have succeeded!


Demise RDAM

All logos and trademarks and information in this site are property of MODSonline LLC © 2009.
The comments are property of their posters.
RSS news feeds for MODSonline can be found News.php.
MODSonline Subscriptions
Partners
Call of Duty Headquarters
CODAddicts - Call of Duty News & Downloads
Bash and Slash Podcast
CoD World Task Force
XoXide
modbase.be
The Firing Box
Battle for Europe COD2
Frag Universe
Ask About
Advertising
Friends
After Life Gaming
ModTheater
Volcano
Ask About
Advertising
Link to Us
MODSonair
View in iTunes
Please help us to raise in the ranks of podcasting and subscribe to our itunes feed using the link above.
Next Show
The next MODSonair show will air LIVE on:
07/05/2009 12:07 EDT

Time remaining:
We Dontated to PixelEquity
Copyright © 2009 MODSonline
Tresware Content Management System Copyright © 2009 Tresware
Website Designed and Hosted   Tresware