DLL Questions
Moderators: GSH, VSMIT, Red Devil, Commando
- General BlackDragon
- Flying Mauler
- Posts: 2408
- Joined: Sat Feb 19, 2011 6:37 am
- Contact:
DLL Questions
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" ?
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" ?
- General BlackDragon
- Flying Mauler
- Posts: 2408
- Joined: Sat Feb 19, 2011 6:37 am
- Contact:
Re: DLL Questions
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.
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.
Re: DLL Questions
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.
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.
- General BlackDragon
- Flying Mauler
- Posts: 2408
- Joined: Sat Feb 19, 2011 6:37 am
- Contact:
Re: DLL Questions
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.
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.
Re: DLL Questions
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?
- Axeminister
- Sabre
- Posts: 442
- Joined: Sat Feb 19, 2011 4:03 pm
- Location: Texas, USA
- Contact:
Re: DLL Questions
Can't you set the ship to be a pilot so you can enter the relay bunker while in it?
- General BlackDragon
- Flying Mauler
- Posts: 2408
- Joined: Sat Feb 19, 2011 6:37 am
- Contact:
Re: DLL Questions
@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 ^.^
@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 ^.^
Re: DLL Questions
Perhaps GSH will be able to help?
Re: DLL Questions
A real bug with a feature that needs some repo and maybe another option? GBD submit that repo case? Hell frozen over?
- General BlackDragon
- Flying Mauler
- Posts: 2408
- Joined: Sat Feb 19, 2011 6:37 am
- Contact:
Re: DLL Questions
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 featureNielk1 wrote:A real bug with a feature that needs some repo and maybe another option? GBD submit that repo case? Hell frozen over?

Re: DLL Questions
Ask Ken?
It should still be bugged at least so its tracked, even if it gets filed as Won't Fix.
It should still be bugged at least so its tracked, even if it gets filed as Won't Fix.
- General BlackDragon
- Flying Mauler
- Posts: 2408
- Joined: Sat Feb 19, 2011 6:37 am
- Contact:
Re: DLL Questions
Except mantis exploded.
And, I've been poking Ken about it in PM, no word on it for a while...
And, I've been poking Ken about it in PM, no word on it for a while...
Re: DLL Questions
Ask him ONCE...