Chaosforge Forum

DoomRL => Modding => Topic started by: Placek on November 13, 2011, 11:45

Title: Compiling
Post by: Placek on November 13, 2011, 11:45
Hello, I wanted to make a mod. I've read the tutorials about modding, but they didn't tell how to compile the mods.
So, could anyone tell me how to compile them?
Title: Re: Compiling
Post by: Game Hunter on November 13, 2011, 12:05
You need the DoomRL WAD compiler, which I've packaged here (http://dl.dropbox.com/u/33336094/doomrl-wad-package.zip), together with the necessary lua compiler needed (don't worry about running that file). In order to compile a WAD, you'll want to put these files in your DoomRL base folder, then run this command in your console at your DoomRL base folder:
Code: [Select]
drlwad mod_name
This would compile, for instance, your mod_name.module and save it into mod_name.wad.

You don't need to compile your modules in order for other people to run them, though. It's a little annoying because, at the moment, you have to include all of the run-time code in the main.lua file (this, among other modding issues, will be fixed in 0.9.9.5).
Title: Re: Compiling
Post by: Placek on November 13, 2011, 13:25
Can you tell me how to use it? I have a module but when I try to compile it, dlrwad and luac just flashes and that's all. I don't get a wad.
Title: Re: Compiling
Post by: Game Hunter on November 13, 2011, 13:36
Can you tell me how to use it? I have a module but when I try to compile it, dlrwad and luac just flashes and that's all. I don't get a wad.

...run this command in your console at your DoomRL base folder:
Code: [Select]
drlwad mod_name
This would compile, for instance, your mod_name.module and save it into mod_name.wad.
If you're running something like Linux then using a console shouldn't be unfamiliar to you. If you're using Windows, open up the Command Prompt console emulator and navigate yourself to your DoomRL base folder (such as, for example, C:\Games\DoomRL). Then, use the command I mentioned in that other post (drlwad mod_name), where mod_name should be the identifier of your module.

The console should show a 'Compiling module "mod_name" ...', then a 'Done.' when it finishes. The WAD file should be in your modules folder at that point.

EDIT: If you're still having issues, it could be that you're inexperienced with Command Prompt (that is, a console-based interface). Rather than enter back-and-forth posting, you should probably get on our IRC channel and we can figure it out from there.
Title: Re: Compiling
Post by: Placek on November 13, 2011, 14:15
I've found out how to use the command promt, thanks for help.
Unfortunately, I won't be playing DoomRL anymore due to the in-real-life stuff.
Anyways, thanks for help again. :)
Title: Re: Compiling
Post by: Kornel Kisielewicz on November 16, 2011, 20:59
Woah, what did they do to you? D:
Title: Re: Compiling
Post by: Placek on November 17, 2011, 10:03
It's nothing now, I pointlessly used the word "anymore" here. I thought I'll commit suicide because I had 4 tests in one week. :>
Title: Re: Compiling
Post by: ParaSait on November 18, 2011, 02:02
I thought I'll commit suicide because I had 4 tests in one week. :>
Raffle waffle. That sure is a feeling I am not wholly unfamiliar to :P