Airdrops are working for me, I have it set at 5 Players and at noon one will come.I don't want to make new subject, it doesn't matter I think:
They don't work, only manual/plugin I guess.
I have also problems - World.Airdrop(1) don't work on online server. Only on localhost. No errors or something, it's just not working.
World.AirdropAt() is working on both.
airdrop.min_players "2"
airdrop_count=2
if cmd == "airdrop_here":
if Player.Admin:
airdrop_Caller = Player.Name
a_Caller_X = Player.X
a_Caller_Z = Player.Z
World.AirdropAt(a_Caller_X,340,a_Caller_Z,1)
Server.BroadcastFrom("Airdrop",airdrop_Caller+" Called an Airdrop in location:"+DC_Yellow+" somewhere!")
Server.BroadcastFrom("Airdrop","Check your location! /location")
if cmd == "airdrop_random":
if Player.Admin:
airdrop_Caller = Player.Name
World.Airdrop(1)
Server.BroadcastFrom("Airdrop",airdrop_Caller+" Called an Airdrop to"+DC_Yellow+" random location!")
Server.BroadcastFrom("Airdrop","Keep your heads up!")
I also have working airdrops. Also what does World.Airdrop(1) do?I'm running a rust server on a windows server, and I get automatic airdrops.
Are you sure?
if cmd == "airdrop_random":
if Player.Admin:
airdrop_Caller = Player.Name
World.Airdrop(1)
Server.BroadcastFrom("Airdrop",airdrop_Caller+" Called an Airdrop to"+DC_Yellow+" random location!")
Server.BroadcastFrom("Airdrop","Keep your heads up!")
hmmm..Yes I'm sure. I made plugin "Airdrop", so players can ask admin for an airdrop, just because airdrops never come. I thought random airdrops will work and everything will be fine, just write "/airdrop_random" sometimes, but not. Look at my plugin:
And looks like plugin is crashing at World.Airdrop(1), because I don't get Server Messages. On localhost (windoes) I get both, airdrop and messages.Code:if cmd == "airdrop_random": if Player.Admin: airdrop_Caller = Player.Name World.Airdrop(1) Server.BroadcastFrom("Airdrop",airdrop_Caller+" Called an Airdrop to"+DC_Yellow+" random location!") Server.BroadcastFrom("Airdrop","Keep your heads up!")
Do you get the broadcast messages?I know I can do
Server.BroadcastFrom("Airdrop",player.Name+" Called an Airdrop to"+DC_Yellow+" random location!")
I just like to have everything in variables. More readibility.
Problem is at you, not at me.No, like I wrote before, I don't get it. So plugin is stopping on World.Airdrop(1)
Also you broke forum reply. I can't reply without some webmaster tools, because some "Drop files to upload here" is showing on reply form.![]()
What. No. /Save/Logs.I just can't check man. On linux log file is filled with some "Shit", so you just can't. Every process, function, everything is in log. It's not like on windows, where you have only connect/disconnect players and errors, if any.
[2/9/2015 2:49:56 PM] [Debug] [CHAT-CMD] "JajahPeace" executed "/airdrop_random"
[2/9/2015 2:49:56 PM] [Error] Traceback (most recent call last):
File "<string>", line 76, in On_Command
SystemError: Object reference not set to an instance of an object
https://github.com/Notulp/Fougerite/issues/44Sorry when I saw those huge exceptions I really thought it's not worth to even open it.
Here is your log:
World.Airdrop(1):
Code:[2/9/2015 2:49:56 PM] [Debug] [CHAT-CMD] "JajahPeace" executed "/airdrop_random" [2/9/2015 2:49:56 PM] [Error] Traceback (most recent call last): File "<string>", line 76, in On_Command SystemError: Object reference not set to an instance of an object
You think you can try this?Sorry when I saw those huge exceptions I really thought it's not worth to even open it.
Here is your log:
World.Airdrop(1):
Code:[2/9/2015 2:49:56 PM] [Debug] [CHAT-CMD] "JajahPeace" executed "/airdrop_random" [2/9/2015 2:49:56 PM] [Error] Traceback (most recent call last): File "<string>", line 76, in On_Command SystemError: Object reference not set to an instance of an object
import clr
clr.AddReferenceByPartialName("Fougerite")
import Fougerite
class WhatEver:
SupplyDrop = None
def On_PluginInit(self):
self.SupplyDrop = Util.TryFindReturnType("SupplyDropZone")
def On_Command(self, Player, cmd, args):
if cmd == "airdropcall":
self.SupplyDrop.CallAirDrop()
Player.Message("Called!")
Sorry I don't have server right now, if FAC come out this week I'll pay for server and try this. If not, you can forget me and my problems hahaYou think you can try this?
Python:import clr clr.AddReferenceByPartialName("Fougerite") import Fougerite class WhatEver: SupplyDrop = None def On_PluginInit(self): self.SupplyDrop = Util.TryFindReturnType("SupplyDropZone") def On_Command(self, Player, cmd, args): if cmd == "airdropcall": self.SupplyDrop.CallAirDrop() Player.Message("Called!")