Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
46 user(s) are online (17 user(s) are browsing Forum)

Members: 0
Guests: 46

more...
Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +30€

Current balance: -190€
(last updated 04/2017)

Please make a donation if you want to help keeping The-Starport online:

Bitcoin address:
Thanks!
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 13 users playing Freelancer on 37 servers.
August. 22, 2017

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post



NPC do not tractor in stuff and freeze(not about loot_preference line)
Just can't stay away
Joined:
2008/3/11 16:11
From Belarus, Minsk
Group:
Registered Users
Senior Members
Posts: 384
Offline
Suddenly encountered such a problem:

I gave some volume to guns, now guns take some cargo space. In case with a player I can't tractor in guns with huge volume flying starflier, for example battleship turrets that have volume = 500 line(just an example). And can't tractor in smaller guns when my cargo is full. Just the way it should be.
Npcs cant tractor in those turrets too, but they just sit still without moving trying to do it. after I destroy the gun, npc will get back to their job.

So, an example.

Npc ship has cargo space volume of 70.
40 is occupied with ammo and cargo.
Looted gun volume is 50.
NPC tries to tractor it in(cos npc still has cargo space left I guess) but fails, and just freezes in space without moving until I destroy the looted gun.

I guess it's a bad idea to give a volume less or more than 1 to something in freelancer.

Anybody knows how to fix this???

Guess a hack is needed again

Posted on: 2010/9/19 17:27
Top
Re: NPC do not tractor in stuff and freeze(not about loot_preference line)
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1767
Offline
This should fix it.

Attach file:


zip ChkLootVol.zip Size: 3.14 KB; Hits: 198

Posted on: 2010/9/20 15:17
Top
Re: NPC do not tractor in stuff and freeze(not about loot_preference line)
Just can't stay away
Joined:
2008/3/11 16:11
From Belarus, Minsk
Group:
Registered Users
Senior Members
Posts: 384
Offline
Damn, so far seems like it works perfectly!!!!

Amazing! Thank you so much.

Actually I guess it's a very useful plugin for many mods.

Posted on: 2010/9/21 22:07
Top
Re: NPC do not tractor in stuff and freeze(not about loot_preference line)
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3443
Offline
I'm sorry to bump this, but it doesn't appear to be working. I'm seeing a lot of NPCs just hanging around in space doing nothing, and I've tried putting the plugin on the server only and on the server and client to no avail.

Could there be something specific to MP?

Posted on: 2014/7/6 22:42
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Top
Re: NPC do not tractor in stuff and freeze(not about loot_preference line)
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1767
Offline
I copied Aggressor 1K from the Manhattan Docking Ring, giving the Gunslinger a volume of 100. Started Solo MP, shot it and the NPCs hung around. Added chklootvol to the client, they still hung around. Added it to the server, they moved on. Seems to be working fine, maybe it's not volume related?

Posted on: 2014/7/7 8:34
Top
Re: NPC do not tractor in stuff and freeze(not about loot_preference line)
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 3443
Offline
Hmm...

One thing I noticed is that when the NPCs first spawn and notice the loot, the Volume function you made gets called very rapidly, but if I remove the breakpoint and add it back in a second later, it's no longer tripped until new NPCs spawn.

I also believe that they can usually tractor a part of the loot in the loot container, but not all of it. They'll tractor in the first part, but then hang around trying to tractor the rest. If I blow up all the loot, they'll move on. Could it be a problem with updating the cargo capacity remaining?

Posted on: 2014/7/7 15:13
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try."
-Peggy Noonan
Top
Re: NPC do not tractor in stuff and freeze(not about loot_preference line)
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1767
Offline
Okay, this time I copied Flint, replacing the Cardamine with 200 Diamonds, each with volume 10. Again, they all moved on, except for the Repair Ship. There's two things different about it - it has no tractor and it's a transport (unlike the Heavy Lifter, which also has no tractor, but it's a fighter and it moved on). Since you've got a debugger, try NOPping the jump at 62CEBF8 and see if that helps (I don't think it will, since I think it just controls movement). Otherwise, try patching get_cargo_hold_remaining to return 0 and see if that has an effect. If it does, restore it and find the right call...

Posted on: 2014/7/8 12:47
Top
Re: NPC do not tractor in stuff and freeze(not about loot_preference line)
Just can't stay away
Joined:
2008/3/11 16:11
From Belarus, Minsk
Group:
Registered Users
Senior Members
Posts: 384
Offline
Never noticed any problems so far...?...

Posted on: 2014/10/5 16:39
Top
Re: NPC do not tractor in stuff and freeze(not about loot_preference line)
Just can't stay away
Joined:
2010/2/17 20:45
From Germany
Group:
Registered Users
Senior Members
Posts: 466
Offline
Sorry to bump this once more:

I noticed that your plugin does not cover the case of nano bots and shield batteries. NPCs will try to loot them, but freeze if their limit is reached.

Posted on: 2016/11/4 17:19
How to create .SUR files - Tutorial
Top
Re: NPC do not tractor in stuff and freeze(not about loot_preference line)
Home away from home
Joined:
2009/8/16 2:58
From Qld, Aus.
Group:
Registered Users
FLServer Admins
Trusted Speciality Developers
Senior Members
Posts: 1767
Offline
Confirmed, but the fix eludes me.

Posted on: 2016/11/6 6:28
Top
Re: NPC do not tractor in stuff and freeze(not about loot_preference line)
Just can't stay away
Joined:
2010/2/17 20:45
From Germany
Group:
Registered Users
Senior Members
Posts: 466
Offline
Thanks anyway. Then the workaround is just to set NPCs not to loot nanobots/batteries at all.

Posted on: 2016/11/6 12:53
How to create .SUR files - Tutorial
Top