aelariane / AottgBotLib

Simple library built over Photon Networking to ease creating bots for AoTTG game by Feng Lee
7 stars 1 forks source link

Titan Spawning and custom game rules #2

Open Wizard-Ex-Machina opened 1 year ago

Wizard-Ex-Machina commented 1 year ago

Hi I am trying to create a bot that implements this libary and was wondering how to set the game up in a way that allows titans to spawn in waves (like on forestIII) and set custom game rules similar to RC's titan size and Nape Minium damage.

aelariane commented 1 year ago

The thing you want is not possible to do with this library, sorry.

This library just wraps .NET library for photon. Game logic relies on Unity game engine (Specifically Titans, whose logic is on MC (MasterClient) side and relies on physics etc) This can easily be used for simple chat bots, or for hosting rooms that do not rely on Unity game engine (Such as racing, where you only need to send map name and implement simple logic for handling few RPCs)

While it is technically possible to use this library to host titan rooms, you WILL HAVE TO implement your own physics engine, or emulation of it, or some complicated logic, because titans do rely on physics, collision, etc..

I am glad that anyone willing to use this, but it does not suit your needs. Hopefully, you will find a solution!

Wizard-Ex-Machina commented 1 year ago

Shame to here that, thanks for producing this library it has been a huge help in what I was trying to do.

As it is not possible to do in this library at present do you think it would be easier to add titan physics to this library or modify something like anarchy to produce a headless client for usage as a host bot? I am NOT asking for you to do this work on this yourself just asking for your opinion as to which route you think would be the easiest as you have experience with both.

aelariane commented 1 year ago

Modfying AoTTG client to use it headless will be a lot easier in my opinion.