Solved airdrops in 1.0.7B

AglarCZ

New Member
Member
Aug 20, 2014
11
2
3
Hello guys,
i just got few questions about airdrops in fougerite 1.0.7B.

How are they working?
Spawning every ingame day at noon (if minimum number of player is online) ?
Is there any good plugin to customize spawning time etc. ?
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
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.
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
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.
Airdrops are working for me, I have it set at 5 Players and at noon one will come.
Have you got it set in Rust++ (I think thats where it is located now)?
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
In server.cfg:
Code:
airdrop.min_players "2"
In rust++:
Code:
airdrop_count=2
Not working.

Basically if airdrops are dropping with World.Airdrop(1), I don't expect it's gonna drop automatic, if manually it's not dropping either. I have a plugin:

Code:
    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!")
And World.Airdrop(1) isn't working only on online VPS. On localhost everything is fine, but you know, I'll not player hour to just check if automatic drop is working. Can't even check errors, because with Wine whole server APP is like "One Big Camera Error Trash", so you know.
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
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:
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!")
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.
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
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:
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!")
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.
hmmm..
TIP: remove "airdrop_Caller = Player.Name" you don't need that line :p
EDIT:
You don't have spaces after the "," in Server.Broadcast I think that can throw an error.
(I'm assuming you're using python?)
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
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.
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
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. :)
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
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. :)
Problem is at you, not at me.


I think this is an issue with the method, I will go ahead and report It on github.

Any errors in the log files?
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
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.
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
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
 
  • Funny
Reactions: DreTaX

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
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
https://github.com/Notulp/Fougerite/issues/44
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
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
You 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!")
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
You 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!")
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 haha :)