Thread Rating:
  • 4 Vote(s) - 4.25 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[DEV] G2O Bot module
#1
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 Tongue
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
Reply
#2
Version Linux?
Reply
#3
(25.12.2015, 12:22)Razir Wrote: Version Linux?
There is both version windows and linux.
Reply
#4
I did not work on Linux but Windows did.
Reply
#5
(25.12.2015, 13: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.
Reply
#6
(25.12.2015, 12:22)Razir Wrote: Version Linux?
Try WINE.
Reply
#7
i can't download it
[Image: wu0z9z.jpg]
Reply
#8
(26.12.2015, 11:50)Giosep Wrote: i can't download it

You can, accept dangerous file in your browser. After update i'll change hosting.
Reply
#9
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?
Reply
#10
(27.12.2015, 10: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?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [G2O] SpeedBlock Marbar 14 1,028 25.06.2020, 11:14
Last Post: Marbar
  [New G2O][Client-Side] LocalStorage Patrix 0 419 08.05.2020, 15:38
Last Post: Patrix
  [New G2O] Module example Patrix 4 3,875 17.05.2019, 00:30
Last Post: Patrix
  [New G2O][Client-Side] Clipboard Patrix 7 4,853 07.02.2019, 00:45
Last Post: Patrix
  [New G2O][Client-Side] Music Module Nubzior 3 2,742 24.05.2018, 07:07
Last Post: Nubzior
  G2O - Client Side Bots(0.0.4) KimiorV 16 8,354 16.01.2017, 09:47
Last Post: KimiorV
  G2O Client side bots KimiorV 4 2,606 09.06.2016, 19:11
Last Post: KimiorV

Forum Jump:


Users browsing this thread: 1 Guest(s)