Skip to content
This repository was archived by the owner on Apr 27, 2019. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
StarryPy is Twisted-based plugin-driven Starbound server wrapper. It is currently
in beta.

**NOTE! Player warping is currently __broken__**

## Features

With the built-in plugins (which are removable):
Expand All @@ -15,7 +17,7 @@ With the built-in plugins (which are removable):
* Join/quit announcements.
* And more.

## Version 1.5 is here!
## Version 1.6 is here!

With this most recent release, we are compatible with the current release of Starbound (Upbeat Giraffe). Any bugs found in the process, please open an issue ticket, so we can squash them as quickly as possible.

Expand Down
16 changes: 14 additions & 2 deletions base_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ def on_update_world_properties(self, data):
def on_heartbeat(self, data):
return True

def on_connect_response(self, data):
def on_connect_success(self, data):
return True

def on_connect_failure(self, data):
return True

def on_chat_sent(self, data):
Expand All @@ -194,6 +197,9 @@ def on_client_disconnect_request(self, player):
def on_player_warp(self, data):
return True

def on_player_warp_result(self, data):
return True

def on_fly_ship(self, data):
return True

Expand Down Expand Up @@ -332,7 +338,10 @@ def after_update_world_properties(self, data):
def after_heartbeat(self, data):
return True

def after_connect_response(self, data):
def after_connect_success(self, data):
return True

def after_connect_failure(self, data):
return True

def after_chat_sent(self, data):
Expand All @@ -350,6 +359,9 @@ def after_client_disconnect_request(self, data):
def after_player_warp(self, data):
return True

def after_player_warp_result(self, data):
return True

def after_fly_ship(self, data):
return True

Expand Down
14 changes: 13 additions & 1 deletion packets/data_types.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import logging
from construct import Construct, Struct, Byte, BFloat64, Flag, \
from construct import Construct, Struct, Byte, BFloat32, BFloat64, Flag, \
String, Container, Field
from construct.core import _read_stream, _write_stream, Adapter

Expand Down Expand Up @@ -85,6 +85,18 @@ def _parse(self, stream, context):
l = VLQ("").parse_stream(stream)
return [Variant("").parse_stream(stream) for _ in range(l)]

class ChunkVariant(Construct):
def _parse(self, stream, context):
l = VLQ("").parse_stream(stream)
c = {}
for x in range(l):
junk1 = Byte("").parse_stream(stream)
junk2 = Byte("").parse_stream(stream)
junk3 = BFloat32("").parse_stream(stream)
junk4 = Byte("").parse_stream(stream)
junk5 = StarByteArray("").parse_stream(stream)
return c

class DictVariant(Construct):
def _parse(self, stream, context):
l = VLQ("").parse_stream(stream)
Expand Down
Loading