Initial commit

This commit is contained in:
Lncvrt committed 2025-07-30 22:48:48 -07:00
commit f7bfe5afd6
21 files changed
+4475

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import { defineCollection } from 'astro:content';
import { docsLoader } from '@astrojs/starlight/loaders';
import { docsSchema } from '@astrojs/starlight/schema';
export const collections = {
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
};
+13
View File
@@ -0,0 +1,13 @@
---
title: OpenRays Docs
description: A documentation website on reverse engineering geometry rays
template: splash
hero:
tagline: A documentation website on reverse engineering geometry rays
actions:
- text: Server info
link: /server/
icon: right-arrow
---
import { Card, CardGrid } from '@astrojs/starlight/components';
@@ -0,0 +1,13 @@
---
title: download-level.php
---
The endpoint URL is `http://georays.puppet57.xyz/php-code/download-level.php`, to download a level you will need to send a get request with the param `id` set to the level id you want to download
# Response
| Response Message | Cause/Reason |
| ---------------------- | ------------------------------------------------ |
| `[level data]` | The level data with a prefix added by the server |
| `Level doesn't exist!` | The level ID doesn't exist |
| `invalid_request` | A invalid request was provided |
@@ -0,0 +1,11 @@
---
title: get-chats.php
---
The endpoint URL is `http://georays.puppet57.xyz/php-code/get-chats.php`, to fetch all chats you will need to send a get request
# Response
The response can be parsed by splitting the line by `\n` and each line will be formatted as `user: message`
A username with `(Unverified)` suffix means the username or password is incorrect and couldn't be verified
@@ -0,0 +1,13 @@
---
title: get-latest-version.php
---
The endpoint URL is `http://georays.puppet57.xyz/php-code/login.php`, to the get latest version of geometry rays you will need to send a post request with the following data
| Key | Type | required |
| ------ | -------- | -------- |
| `fyre` | `string` | `false` |
# Response
If post data key `fyre` is value `fyre`, the Geometry Rays Fyre version will be returned, if not, then it will return the Geometry Rays Legacy version
@@ -0,0 +1,19 @@
---
title: login.php
---
The endpoint URL is `http://georays.puppet57.xyz/php-code/login.php`, to login to an account you will need to send a post request with the following data
| Key | Type |
| ------ | -------- |
| `user` | `string` |
| `pass` | `string` |
# Responses
| Response Message | Cause/Reason |
| --------------------- | ---------------------------------------------------- |
| `Logged in!` | A correct username and password was provided |
| `User doesnt exist!` | Attempting to login to an account that doesn't exist |
| `Incorrect password!` | A incorrect password was provided |
| `invalid_request` | A invalid request was provided |
@@ -0,0 +1,19 @@
---
title: send-chat.php
---
The endpoint URL is `http://georays.puppet57.xyz/php-code/send-chat.php`, to upload a chat message you will need to send a post request with the following data
| Key | Type |
| ------ | -------- |
| `user` | `string` |
| `pass` | `string` |
| `msg` | `string` |
# Responses
| Response Message | Cause/Reason |
| ----------------- | ------------------------------- |
| `message sent` | A message was sent successfully |
| `invalid message` | Invalid data provided |
| `invalid request` | A invalid request was provided |
@@ -0,0 +1,24 @@
---
title: upload-level.php
---
The endpoint URL is `http://georays.puppet57.xyz/php-code/upload-level.php`, to upload a level you will need to send a post request with the following data
| Key | Type |
| --------- | -------- |
| `name` | `string` |
| `desc` | `string` |
| `data` | `string` |
| `creator` | `string` |
| `pass` | `string` |
| `diff` | `string` |
# Responses
| Response Message | Cause/Reason |
| -------------------- | ------------------------------------------- |
| `Level too big!` | Level data over a unknown size was provided |
| `Level Uploaded!` | Level uploaded successfully |
| `Password Invalid` | A incorrect password was provided |
| `User doesn't exist` | Creator user doesn't exist |
| `invalid_request` | A invalid request was provided |
+11
View File
@@ -0,0 +1,11 @@
---
title: General information
---
This document will provide all information about how geometry rays server works, from sending info, recieving info, and more.
If you want to see endpoint-specific information, then expand the dropdown in the sidebar for endpoints.
---
Every server endpoint will start with `http://georays.puppet57.xyz/php-code/`