[Project] "Knee-Deep in ZDoom"
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.
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.
-
- Lead GZDoom+Raze Developer
- Posts: 49183
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
-
- Site Admin
- Posts: 7749
- Joined: Wed Jul 09, 2003 10:30 pm
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.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?
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)
{
}
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.]
-
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
so to use a library:
risen should put this at the top of his file:
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:
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!
risen should put this at the top of his file:
Code: Select all
#library "InterMapStuff"
then we put this into our map files:
Code: Select all
#Import "InterMapStuff"
-------------------------------------------------------
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!
-
- Posts: 4630
- Joined: Fri Apr 16, 2004 1:41 pm
- Preferred Pronouns: He/Him
-
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
...
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)
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.
-
- Posts: 5263
- Joined: Thu Jan 08, 2004 1:02 pm
- Location: N44°30' W073°05'
That sounds good to me. There is already one change but it won't matter. I'll name the library INTERMAP.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.
-
- Posts: 1193
- Joined: Thu Apr 15, 2004 3:28 pm
- Location: Leeds
CTRL-S is your friend.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)
-
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
-
- ... in rememberance ...
- Posts: 2024
- Joined: Sat Apr 03, 2004 10:58 am
-
- Posts: 5263
- Joined: Thu Jan 08, 2004 1:02 pm
- Location: N44°30' W073°05'
-
- Posts: 4019
- Joined: Fri Aug 15, 2003 8:15 pm
- Location: ferret ~/C/ZDL $
BUG: AMB2 in the resource wad is defined improperly
replace:
with:
and shouldnt enjays tank graphics be put between the TX_ markers?
replace:
Code: Select all
$AMBIENT 2 amb2 POINT CONTINOUS 0.5
Code: Select all
$AMBIENT 2 amb2 POINT CONTINUOUS 0.5
-
- Posts: 3463
- Joined: Sat Jul 19, 2003 8:39 am
-
- Posts: 13549
- Joined: Wed Jul 16, 2003 3:52 am
-
- Posts: 5263
- Joined: Thu Jan 08, 2004 1:02 pm
- Location: N44°30' W073°05'
-
- Posts: 1816
- Joined: Wed Jul 16, 2003 7:21 am
- Location: NJ, USA
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.
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.