![]() |
[DEV] G2O Bot module - Printable Version +- Gothic Online Forums (https://archive.gothic-online.com) +-- Forum: Scripting (English) (https://archive.gothic-online.com/forum-11.html) +--- Forum: Resources (https://archive.gothic-online.com/forum-14.html) +---- Forum: Modules (https://archive.gothic-online.com/forum-32.html) +---- Thread: [DEV] G2O Bot module (/thread-213.html) |
[DEV] G2O Bot module - Sative - 20.12.2015 Okay, here it is, server files with enabled and configured bot module.
List of scripting instructions you can find in server-scripts\G2O_CBot.nut
For setting values you MUST use functions like a myBot.setHealth(10); or if you want to get number of health you MUST use local botHealth = myBot.m_Health;.
You also can use bot callbacks like a myBot.onDie = function(killerID){reSpawn();} (it is everything in G2O_CBot.nut file!)
If you don't understand it, bot module is not for you. Coding bots is pretty easy, so iam peeing on the documentation
![]() Bug: bots cannot have spaces on their names or instances! (But they can have unsupported symbols by gothic font, like a: *)
And gimme some shekel on paypal: [email protected]
Changelog - Alpha 2:
- Added Bot:: setAdditionalVisual
- Client-script G2O_Bot.nut is not required
- Probably fixed crashes when the world is changing
- Better position sync
Changelog - Alpha 3:
- Fixed many bugs based on my bad understanding of squirrel classes (so if you have critical errors, you should download this update) - Temporary animations is not play in loop - Fixed bug with onBotFocusEnter/onBotFocusExit - Bot shouldn't get invisible Changelog - Alpha 3 Rev. 2:
- Fixed crash when health of some monsters is set to: 0 - After setting time, bots aren't going invisible (*only for 2 seconds) - And fixes in G2O_CBot.nut Changelog - Alpha 3 Rev. 3:
- Critical fixes RE: [DEV] G2O Bot module - Razir - 25.12.2015 Version Linux? RE: [DEV] G2O Bot module - Bimbol - 25.12.2015 (25.12.2015, 13:22)Razir Wrote: Version Linux?There is both version windows and linux. RE: [DEV] G2O Bot module - Razir - 25.12.2015 I did not work on Linux but Windows did. RE: [DEV] G2O Bot module - Bimbol - 25.12.2015 (25.12.2015, 14:13)Razir Wrote: I did not work on Linux but Windows did.Module is for client side only. So if u trying run dll on linux then good luck. On server u have to add G2O_CBot.nut to xml, and if I'm not wrong, then also exist script for client side. RE: [DEV] G2O Bot module - Sative - 25.12.2015 (25.12.2015, 13:22)Razir Wrote: Version Linux?Try WINE. RE: [DEV] G2O Bot module - Giosep - 26.12.2015 i can't download it RE: [DEV] G2O Bot module - Sative - 26.12.2015 (26.12.2015, 12:50)Giosep Wrote: i can't download it You can, accept dangerous file in your browser. After update i'll change hosting. RE: [DEV] G2O Bot module - Buras - 27.12.2015 I have really weird bug. When I start a game on other world than my bot exists and then I teleport to any other world, my game crashes without any errors. However, when I respawn on a bot's world, everything works fine. Is there any solution for that issue or my scripts somehow collide with the module? RE: [DEV] G2O Bot module - Sative - 30.12.2015 (27.12.2015, 11:14)Buras Wrote: I have really weird bug. When I start a game on other world than my bot exists and then I teleport to any other world, my game crashes without any errors. However, when I respawn on a bot's world, everything works fine. Is there any solution for that issue or my scripts somehow collide with the module? Fixed, will be in next release. Do you know more bugs of this? |