DLL Questions

Moderators: GSH, VSMIT, Red Devil, Commando

Post Reply
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

DLL Questions

Post by General BlackDragon »

I am wondering something...

As you know, BZC is going to use some nifty DLL trickery for some things in BZ1.

Satellite is one of them, and I have it working well for the most part...Except one thing.

When I take the player out of their ship, it sinks to the ground (got no pilot, anyone?)

I am wondering: I used AddPilotByHandle(handle) in the DLL, but the ship still sinks to the ground, and doesn't have the player's team name/isn't commandable. Yet when the ship is destroyed in this state, a little pilot ejects out of the thing....

Is there anything else I need to add to make the pilot in it...erm...."work" ?
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: DLL Questions

Post by General BlackDragon »

Ditched addpilot in favor of replacing entire ship.

Now, Issues:

1: I need to make this ship, with a pilot in it, do NOTHING. Not attack enemies, or move. More or less make it brain dead.
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: DLL Questions

Post by Nielk1 »

First, I sugest you get good repo cases for all the issuse with the existing functionality that allows access to the satalite by base slot.

Second, just make the radar and set its as the player, and when they are done, set the old ship back to the player. Yes, you can actually SET something as the player.
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: DLL Questions

Post by General BlackDragon »

Cannot set player as non craft.

I have an invisible commvehicle spawn where their ship is, it fires sitecam at the player, then aicommand deploys, then they are set as the user.
User avatar
Ded10c
Recycler
Posts: 3815
Joined: Sun Feb 20, 2011 11:05 am
Location: Stoke-on-Trent
Contact:

Re: DLL Questions

Post by Ded10c »

Hold on a second, what are you trying to do here? It is already possible to just press a key and jump to satellite view from your ship, right?
User avatar
Axeminister
Sabre
Posts: 442
Joined: Sat Feb 19, 2011 4:03 pm
Location: Texas, USA
Contact:

Re: DLL Questions

Post by Axeminister »

Can't you set the ship to be a pilot so you can enter the relay bunker while in it?
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: DLL Questions

Post by General BlackDragon »

@AHadley, Yes, but it doesn't work in Multiworld.

@Axe, no, not exactly. In BZ1 you could activate satellite from anywhere while in your ship.

I think I got it with looking for the player's ship to not be idle while in satellite, and if so, command stop.

Now the only issue I need to fix is, you can haz more then one commtower, if one is destroyed, I need to look to see if there are any others before kicking you out of satellite.

Also, Day wreckers now work like in BZ1. 4 lines of code there ^.^
User avatar
Ded10c
Recycler
Posts: 3815
Joined: Sun Feb 20, 2011 11:05 am
Location: Stoke-on-Trent
Contact:

Re: DLL Questions

Post by Ded10c »

Perhaps GSH will be able to help?
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: DLL Questions

Post by Nielk1 »

A real bug with a feature that needs some repo and maybe another option? GBD submit that repo case? Hell frozen over?
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: DLL Questions

Post by General BlackDragon »

Nielk1 wrote:A real bug with a feature that needs some repo and maybe another option? GBD submit that repo case? Hell frozen over?
Satellite canSelect not working in Multiworld is a known bug. I made and mantised a repro case long ago, GSH said he WONT fix it. too much work, and If I even think about asking him to fix it again, he's probably more likely to axe the entire feature :(
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: DLL Questions

Post by Nielk1 »

Ask Ken?

It should still be bugged at least so its tracked, even if it gets filed as Won't Fix.
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: DLL Questions

Post by General BlackDragon »

Except mantis exploded.

And, I've been poking Ken about it in PM, no word on it for a while...
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: DLL Questions

Post by Nielk1 »

Ask him ONCE...
Post Reply