# SCAOS (Simple C AO Server) — v1.0.0

A simple Attorney Online 2 server written in C, aiming for maxium customization, retrocompatibility, limited modularization for the sake of simplicity, minimal dependencies (no 3rd party), portability, and precise static memory usage.

Easy for soydevs and retards alike.

---

## Basic Setup

First of all, install a C compiler. If you're on windows install [MinGW](https://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download) and run compileandrun.bat.

For linux users, install tcc with your package manager and run compileandrun.sh. Here's an Arch quickie:

```bash
sudo pacman -S tcc
chmod +x ./compileandrun.sh
./compileandrun.sh
```

Congratulations, your child grooming e-dungeon now should be up and running! I hope you're fucking happy now.

If you're using an old AO version, join the server using the TCP port, otherwise follow the WS port.

To customize your server go to the config folder. Delete areas.txt and config.txt if you don't know what you're doing and edit the files.
Ignore .autogen_macros.h, it's generated automatically.

When you're done, run compileandrun again.

## Developer Notes

### Dynamic Version

If you want to use runtime (dynamic) lists:

Compile with:

```bash
-DUSE_RUNTIME_LISTS
```

You might want to check src/lists.h if you're working with it.

---

### Windows

When compiling manually, make sure to:

- Link the socket library:

```bash
-lws2_32
```

- If you are on XP:

```bash
-D_WIN32_WINNT=0x0501
```