error:could not find acs library distance

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
ibm5155
Addicted to Zandronum
Posts: 1641
Joined: Tue Jun 05, 2012 9:32 pm
Location: Somewhere, over the rainbow

error:could not find acs library distance

#1

Post by ibm5155 » Mon Jul 14, 2014 7:19 pm

So, I trying to to load this file, but I get a message, "could not find acs library distance"

Idk why, I think I'm missing something :s, well, here's the distance.acs code

Code: Select all

#library "distance"
function int sqrt2 (int x){
	int r;
	x = x + 1 >> 1;
	while (x > r)
		x -= r++;
	return r;
}

function int ibm_distance (int tid1, int tid2){
	int x, y, z, d;
	x = (GetActorX(tid1) - GetActorX(tid2))/65536;
	y = (GetActorY(tid1) - GetActorY(tid2))/65536;
	z = (GetActorZ(tid1) - GetActorZ(tid2))/65536;
	d = sqrt2( x*x + y*y + z*z );
	return d;
}
and on map behavior, it load it with the #import "distance.acs" command...

Am I missing something?
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!

<this post is proof of "Decline">

Catastrophe
Retired Staff / Community Team Member
Posts: 2571
Joined: Sat Jun 02, 2012 2:44 am

RE: error:could not find acs library distance

#2

Post by Catastrophe » Mon Jul 14, 2014 7:28 pm

Did you put distance in LOADACS?

User avatar
Vincent(PDP)
Forum Regular
Posts: 527
Joined: Thu Mar 14, 2013 7:35 pm
Location: Sweden
Clan: My DOOM site
Clan Tag: <MDS>
Contact:

RE: error:could not find acs library distance

#3

Post by Vincent(PDP) » Mon Jul 14, 2014 7:42 pm

Have you put the script inside the A_START and A_END markers?
Or for .pk3: In the ACS folder?
//Visual Vincent ( Vincent (PDP) )
- My DOOM site Team

My projects:
Spoiler: (Open)
Doom Writer
Escape From The Laboratory - Done
Escape From The Laboratory Part 2
Parkskolan Zombie Horde Map (ZM10) - Done
In game Admin Commands for Zandronum.
Achievement Mod for Zandronum
Stats mod

User avatar
Monsterovich
Forum Regular
Posts: 343
Joined: Sun Jun 17, 2012 5:46 pm

RE: error:could not find acs library distance

#4

Post by Monsterovich » Mon Jul 14, 2014 7:52 pm

#import means your script must be added to the acs include path (or included in zcommon.acs)
Last edited by Monsterovich on Mon Jul 14, 2014 7:56 pm, edited 1 time in total.

User avatar
ibm5155
Addicted to Zandronum
Posts: 1641
Joined: Tue Jun 05, 2012 9:32 pm
Location: Somewhere, over the rainbow

RE: error:could not find acs library distance

#5

Post by ibm5155 » Mon Jul 14, 2014 7:56 pm

well the problem was fixed, the libs were ok, the problem was with gzdoom builder, idk what happened, but I replaced the opened files on script editor and everything worked again O_o
but thanks anyway for the help guys :D
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!

<this post is proof of "Decline">

ZzZombo
Forum Regular
Posts: 323
Joined: Mon Jun 11, 2012 12:11 pm
Location: Ravenholm

RE: error:could not find acs library distance

#6

Post by ZzZombo » Mon Jul 14, 2014 11:43 pm

From what I got on #zamapping, the source files were replaced by compiled scripts, or vice versa.
QZRcon - Qt-based tool for Zandronum/Skulltag servers!
#grandvoid funny stats

User avatar
ibm5155
Addicted to Zandronum
Posts: 1641
Joined: Tue Jun 05, 2012 9:32 pm
Location: Somewhere, over the rainbow

RE: error:could not find acs library distance

#7

Post by ibm5155 » Tue Jul 15, 2014 2:10 am

actually, I don't know, on the first time, I compiled something wrong I think, because doom builder was only loading the wad file with the compiled source, the source code wasn't even on the wad
... and then I erased the compiled file, compiled it again, and drag from acc compiled file and droped on the wad, and, it worked :D
I still don't get at all the #library name, should it be the same name as the compiled file? I just let the same name as the compiled one, but I don't think it's how it work, because, It would be a bit dumb (from the compiler part) since you already got the file name with the file itself...
Projects
Cursed Maze: DONE, V2.0
Zombie Horde - ZM09 map update: [3/15/13]
Need help with English? Then you've come to the right place!

<this post is proof of "Decline">

Post Reply