How reiserfss/infiniteloop works
InfiniteLoop is a Punishing: Gray Raven private-server emulator targeting the global PC/Steam client. A client reaches the SDK’s account/config endpoints or opens a game TCP session; the game server processes requests, updates persistent player state, and returns responses or pushes. The implementation also covers activities, draws, task/reward claims, guilds, and BigWorld. Edges reflect excerpted calls, SOURCE INDEX references, or README statements; unsampled feature wiring is shown only where documented, and some subsystem boundaries remain approximate.
Main entry points: Session.cs Client session · Player.cs Player state · DrawManager.cs Draw systems · SDKServer.cs SDK HTTP server
Components 20
SDK and accounts
- SDK HTTP server
AscNet.SDKServer/SDKServer.cs - Account endpoints
AscNet.SDKServer/Controllers/AccountController.cs - Kuro SDK endpoints
AscNet.SDKServer/Controllers/KuroSdkController.cs
Game runtime
- Game TCP server
AscNet.GameServer/Server.cs - Client session
AscNet.GameServer/Session.cs - Packet codec
AscNet.GameServer/PacketCodec.cs - Request handlers
AscNet.GameServer/Handlers
Gameplay systems
- BigWorld engine
AscNet.GameServer/Handlers/BigWorld/BigWorldModule.Engine.cs - BigWorld quests
AscNet.GameServer/Handlers/BigWorld/BigWorldQuestRuntime.cs - Activity schedules
AscNet.GameServer/Game/ActivityScheduleService.cs - Draw systems
AscNet.GameServer/Game/DrawManager.cs - Tasks and claims
AscNet.GameServer/Handlers/TaskModule.cs - Reward processing
AscNet.GameServer/Handlers/RewardHandler.cs - Guild systems
AscNet.GameServer/Handlers/GuildModule.cs
Persistence and data
- Shared database access
AscNet.Common/Common.cs - Player state
AscNet.Common/Database/Player.cs - Character state
AscNet.Common/Database/Character.cs - Inventory state
AscNet.Common/Database/Inventory.cs - MongoDB
Other components
- Game client
Connections 22
- Game client → SDK HTTP server: requests SDK
- Game client → Game TCP server: opens TCP session
AscNet.GameServer/Server.cs - SDK HTTP server → Account endpoints: hosts endpoints
AscNet.SDKServer/Controllers/AccountController.cs - SDK HTTP server → Kuro SDK endpoints: hosts endpoints
AscNet.SDKServer/Controllers/KuroSdkController.cs - Account endpoints → Player state: loads player
AscNet.SDKServer/Controllers/AccountController.cs - Account endpoints → Shared database access: uses shared access
AscNet.SDKServer/Controllers/AccountController.cs - Game TCP server → Client session: creates session
AscNet.GameServer/Server.cs - Client session → Packet codec: decodes packets
AscNet.GameServer/Session.cs - Client session → Request handlers: dispatches requests
AscNet.GameServer/Session.cs - Shared database access → MongoDB: connects database
AscNet.Common/Common.cs - Player state → Shared database access: uses database
AscNet.Common/Database/Player.cs - Client session → Player state: loads and saves
AscNet.GameServer/Session.cs - Client session → Character state: uses character state
AscNet.GameServer/Session.cs - Client session → Inventory state: uses inventory state
AscNet.GameServer/Session.cs - BigWorld engine → BigWorld quests: uses quest runtime
AscNet.GameServer/Handlers/BigWorld/BigWorldModule.Engine.cs - Draw systems → Activity schedules: checks schedules
AscNet.GameServer/Game/DrawManager.cs - Draw systems → Player state: persists draw state
AscNet.GameServer/Game/DrawManager.cs - Draw systems → Character state: uses roster
AscNet.GameServer/Game/DrawManager.cs - Draw systems → Inventory state: spends and grants
AscNet.GameServer/Game/DrawManager.cs - Tasks and claims → Reward processing: applies rewards
AscNet.GameServer/Handlers/TaskModule.cs - Tasks and claims → Player state: updates progress
AscNet.GameServer/Handlers/TaskModule.cs - Guild systems → Player state: uses player state