[Project] "Knee-Deep in ZDoom"

New maps, and other projects whose primary focus is new maps, belong here.

Note: This forum, and all forums below it, are not for questions or troubleshooting! Threads created here are for active projects only! If you have questions please feel free to use the Editing subforums or General forum.
Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 48538
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

You need a library source but since this library doesn't contain any exports you might as well use an empty library for compiling the other ACS files.
User avatar
randi
Site Admin
Posts: 7731
Joined: Wed Jul 09, 2003 10:30 pm

Post by randi »

Risen wrote:Then what's the deal with people saying you need the library source to compile the map scripts? Is that only necessary when functions are present?
When you #import a script, ACC grabs the names of functions and variables from the imported file so that they can be used by the script that imports it. It also sets a value in the compiled script that tells it to load the library along with it when the map is loaded. An imported file serves much the same purpose as a C header file: It defines what is available, but it doesn't provide an implementation.

Suppose you wanted to provide some functions in your library but didn't want anybody to know how they worked. The following would work just fine as an imported file:

Code: Select all

#library "secret"

function int SomeSecretFunction (int foo, int bar)
{
}

function void SuperSecretFunction (int foo)
{
}
As long as your version of the compiled library is what gets put between the A_START and A_END markers, the maps will be able to use the functions even though the file they imported didn't provide any code for them.

What this means for you is that you can have the map authors #import the file you have right now, and then you can make all the changes you want to it. As long as you don't change the way the maps interface with your library, they won't need to recompile their scripts for every change you make.

[Oo. I just noticed this is post 1666 in this topic.]
User avatar
Bio Hazard
Posts: 4019
Joined: Fri Aug 15, 2003 8:15 pm
Location: ferret ~/C/ZDL $

Post by Bio Hazard »

so to use a library:

risen should put this at the top of his file:

Code: Select all

#library "InterMapStuff"
and then he should compile the scripts and put the resulting BEHAVIOR between the A_START and A_END markers

then we put this into our map files:

Code: Select all

#Import "InterMapStuff"
and thats it?

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

i just had a huge bit of inspiration and am mapping like crazy (its about time).
so untill NMN asks for the map, im keeping it! :p
User avatar
Nmn
Posts: 4615
Joined: Fri Apr 16, 2004 1:41 pm

Post by Nmn »

That suits me fine, I'm actually occupied by several other huge problems and I'm affraid at this moment my presence in the project ends. Was a nice time working with You people.

How's the project itself going on? Have You seen ellmo lately? He is desperately needed.
User avatar
Bio Hazard
Posts: 4019
Joined: Fri Aug 15, 2003 8:15 pm
Location: ferret ~/C/ZDL $

Post by Bio Hazard »

...

om... okay then, i guess im on week 3 too... (good thing too cause i had some ideas)

EDIT: well i lost all of today's work cause DB crashed... its a shame too, the sector count is back to 2900 (from 3500)

DOOMBUILDER NEEDS TO KEEP THE TEMP MAP UNTILL YOU PURPOSELY EXIT SO THIS DOESNT HAPPEN AGAIN (or prompt to save after a while)
Last edited by Bio Hazard on Sun Nov 14, 2004 3:16 pm, edited 1 time in total.
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

randy wrote:What this means for you is that you can have the map authors #import the file you have right now, and then you can make all the changes you want to it. As long as you don't change the way the maps interface with your library, they won't need to recompile their scripts for every change you make.
That sounds good to me. There is already one change but it won't matter. I'll name the library INTERMAP.
User avatar
Csonicgo
Posts: 1193
Joined: Thu Apr 15, 2004 3:28 pm
Location: Leeds

Post by Csonicgo »

Bio Hazard wrote:...

om... okay then, i guess im on week 3 too... (good thing too cause i had some ideas)

EDIT: well i lost all of today's work cause DB crashed... its a shame too, the sector count is back to 2900 (from 3500)

DOOMBUILDER NEEDS TO KEEP THE TEMP MAP UNTILL YOU PURPOSELY EXIT SO THIS DOESNT HAPPEN AGAIN (or prompt to save after a while)
CTRL-S is your friend.
User avatar
Bio Hazard
Posts: 4019
Joined: Fri Aug 15, 2003 8:15 pm
Location: ferret ~/C/ZDL $

Post by Bio Hazard »

i would save often, but i keep forgetting

im still used to how wadauthor would save every time you tested the map
User avatar
MasterOFDeath
... in rememberance ...
Posts: 2024
Joined: Sat Apr 03, 2004 10:58 am

Post by MasterOFDeath »

Then use WadAuthor as opposed to DB(unless the map is that big or the scripts is above WA's limit :P)
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

Got the library to work. Everyone can save the code and #import it, no need to worry about changes from there on.

Where is the newest resource?
Where are the week 3 maps?
User avatar
Bio Hazard
Posts: 4019
Joined: Fri Aug 15, 2003 8:15 pm
Location: ferret ~/C/ZDL $

Post by Bio Hazard »

BUG: AMB2 in the resource wad is defined improperly

replace:

Code: Select all

$AMBIENT 2 amb2 POINT CONTINOUS 0.5
with:

Code: Select all

$AMBIENT 2 amb2 POINT CONTINUOUS 0.5
and shouldnt enjays tank graphics be put between the TX_ markers?
NiGHTMARE
Posts: 3463
Joined: Sat Jul 19, 2003 8:39 am

Post by NiGHTMARE »

I'm afraid I won't be able to finish E1M4 until the end of week 3, as I said would probably happen a few pages back. This means someone else is going to have to fix the bugs Risen reported in E1M7.
User avatar
Tormentor667
Posts: 13470
Joined: Wed Jul 16, 2003 3:52 am

Post by Tormentor667 »

I feel, like we have to enlarge Week 2 to the end of Week 3 and add another Week as Week3 after Week 2 ...
User avatar
Risen
Posts: 5263
Joined: Thu Jan 08, 2004 1:02 pm
Location: N44°30' W073°05'

Post by Risen »

I think every 'week' thus far has actually been two weeks!
User avatar
cccp_leha
Posts: 1816
Joined: Wed Jul 16, 2003 7:21 am
Location: NJ, USA

Post by cccp_leha »

Sorry.

To summarize the last two weeks for me: I had midterms (when is the last day to drop classes?), I got sick (probably the flu, so stay away from me) and my computer broked (haven't you noticed the lack of my posts?). That is all. My apologies, but there was nothing I could do. Now if you are really extending the weeks, I'll be happy to dig up some backup copy or something.

Return to “Levels”