Page 112 of 352

PostPosted: Sun Nov 14, 2004 7:53 am
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.

PostPosted: Sun Nov 14, 2004 1:35 pm
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 allExpand view
#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.]

PostPosted: Sun Nov 14, 2004 1:48 pm
by Bio Hazard
so to use a library:

risen should put this at the top of his file:
Code: Select allExpand view
#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 allExpand view
#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

PostPosted: Sun Nov 14, 2004 2:05 pm
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.

PostPosted: Sun Nov 14, 2004 2:10 pm
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)

PostPosted: Sun Nov 14, 2004 2:20 pm
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.

PostPosted: Sun Nov 14, 2004 4:11 pm
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.

PostPosted: Sun Nov 14, 2004 4:27 pm
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

PostPosted: Sun Nov 14, 2004 9:20 pm
by MasterOFDeath
Then use WadAuthor as opposed to DB(unless the map is that big or the scripts is above WA's limit :P)

PostPosted: Sun Nov 14, 2004 9:55 pm
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?

PostPosted: Sun Nov 14, 2004 11:36 pm
by Bio Hazard
BUG: AMB2 in the resource wad is defined improperly

replace:
Code: Select allExpand view
$AMBIENT 2 amb2 POINT CONTINOUS 0.5

with:
Code: Select allExpand view
$AMBIENT 2 amb2 POINT CONTINUOUS 0.5


and shouldnt enjays tank graphics be put between the TX_ markers?

PostPosted: Mon Nov 15, 2004 2:05 am
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.

PostPosted: Mon Nov 15, 2004 2:59 am
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 ...

PostPosted: Mon Nov 15, 2004 6:01 am
by Risen
I think every 'week' thus far has actually been two weeks!

PostPosted: Mon Nov 15, 2004 7:52 am
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.