Chaosforge Forum

  • March 29, 2024, 08:49
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Compiling  (Read 5402 times)

Placek

  • Private FC
  • *
  • Offline Offline
  • Posts: 6
  • Lost Soul
    • View Profile
Compiling
« 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?
Logged

Game Hunter

  • Programmer
  • Local Inquisitor
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1044
  • Looks like game to me.
    • View Profile
    • Channel, the Roguelike
Re: Compiling
« Reply #1 on: November 13, 2011, 12:05 »

You need the DoomRL WAD compiler, which I've packaged here, 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).
Logged
I'm just a dude playing a dude disguised as another dude.

Latest LPs: Angband, Delver

Placek

  • Private FC
  • *
  • Offline Offline
  • Posts: 6
  • Lost Soul
    • View Profile
Re: Compiling
« Reply #2 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.
Logged

Game Hunter

  • Programmer
  • Local Inquisitor
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1044
  • Looks like game to me.
    • View Profile
    • Channel, the Roguelike
Re: Compiling
« Reply #3 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.
« Last Edit: November 13, 2011, 13:38 by Game Hunter »
Logged
I'm just a dude playing a dude disguised as another dude.

Latest LPs: Angband, Delver

Placek

  • Private FC
  • *
  • Offline Offline
  • Posts: 6
  • Lost Soul
    • View Profile
Re: Compiling
« Reply #4 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. :)
Logged

Kornel Kisielewicz

  • God Hand
  • Apostle
  • *
  • *
  • Offline Offline
  • Posts: 4562
    • View Profile
    • http://chaosforge.org/
Re: Compiling
« Reply #5 on: November 16, 2011, 20:59 »

Woah, what did they do to you? D:
Logged
at your service,
Kornel Kisielewicz

Placek

  • Private FC
  • *
  • Offline Offline
  • Posts: 6
  • Lost Soul
    • View Profile
Re: Compiling
« Reply #6 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. :>
Logged

ParaSait

  • Baffen :P
  • Elder
  • Lieutenant General
  • *
  • *
  • Offline Offline
  • Posts: 1229
  • Happy Little Boozer
    • View Profile
    • MPSF
Re: Compiling
« Reply #7 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
Logged
[18|7|3|0|0|0] [MED:13/43] [SPE:36/67] [ASM:11/40]

Check out my epic youtube channel!
Currently playing The Bard's Tale and System Shock 2 (coop with GrAV1t)!
Pages: [1]