memo: all meth and vars for main objects pyspades

Installation support, coding tips, and general tutorials.
24 posts Page 2 of 2 First unread post
izzy
Head Admin / Co-founder
Head Admin / Co-founder
Posts: 474
Joined: Tue Oct 09, 2012 8:16 pm


Yeah. Stickied.
thepolm3
Scripter
Scripter
Posts: 424
Joined: Sat Feb 16, 2013 10:49 pm


Thanks izzy ^^
[BP]Mininao
Deuce
Posts: 13
Joined: Thu Dec 27, 2012 12:13 pm


This is really awesome !
Image
But do you know where we can find the args available for the differents meth ?
thepolm3
Scripter
Scripter
Posts: 424
Joined: Sat Feb 16, 2013 10:49 pm


for most odf them you can look them up in mixed.py.... I'm thinking of doing that
[BP]Mininao
Deuce
Posts: 13
Joined: Thu Dec 27, 2012 12:13 pm


Ok, thanks ! Blue_Happy3
Kuma
Scripter
Scripter
Posts: 758
Joined: Fri Mar 22, 2013 10:05 am


Here, all the parameters and default values of the basic protocol class.
Code: Select all
PROTOCOL-----------
name = 'pyspades server'
game_mode = CTF_MODE
max_players = 32
connections = None
player_ids = None
master = False
max_score = 10
map = None
spade_teamkills_on_grief = False
friendly_fire = False
friendly_fire_time = 2
server_prefix = '[*]'
respawn_time = 5
refill_interval = 20
master_connection = None
speedhack_detect = True
fog_color = (128, 232, 255)
winning_player = None
world = None
team_class = Team
team1_color = (0, 0, 196)
team2_color = (0, 196, 0)
team1_name = 'Blue'
team2_name = 'Green'
spectator_name = 'Spectator'
loop_count = 0
melee_damage = 100
version = GAME_VERSION
respawn_waves = False

send_contained(self, contained, unsequenced = False, sender = None, team = None, save = False, rule = None)
reset_tc(self)
get_cp_entities(self)
update(self)
update_network(self)
set_map(self, map)
reset_game(self, player = None, territory = None)
get_name(self, name)
get_mode_mode(self)
get_random_location(self, force_land = True, zone = (0, 0, 512, 512))
set_master(self)
got_master_connection(self, connection)
master_disconnected(self, client = None)
update_master(self)
update_entities(self)
send_chat(self, value, global_message = None, sender = None, team = None)
set_fog_color(self, color)
get_fog_color(self)
on_cp_capture(self, cp)
on_game_end(self)
on_world_update(self)
on_map_change(self, map)
on_base_spawn(self, x, y, z, base, entity_id)
on_flag_spawn(self, x, y, z, flag, entity_id)
on_update_entity(self, entity)
A protocol.map would be nice! :3
learn_more
Coder
Coder
Posts: 891
Joined: Sun Mar 24, 2013 9:59 pm


Kuma wrote:
A protocol.map would be nice! :3
protocol.map_info
Kuma
Scripter
Scripter
Posts: 758
Joined: Fri Mar 22, 2013 10:05 am


learn_more wrote:
Kuma wrote:
A protocol.map would be nice! :3
protocol.map_info
there is a protocol.map if you din't know.
like protocol.map.set_point(don't remember the parameters)
ei8htx
Deuce
Posts: 16
Joined: Thu Dec 19, 2013 10:59 pm


Quite useful, thanks.
24 posts Page 2 of 2 First unread post
Return to “Help!”

Who is online

Users browsing this forum: No registered users and 10 guests