create bots with this plugin

habi

  • Sr. Member
  • Posts: 285

gtacheng

  • Newbie
  • Posts: 28

KrooB

  • Full Member
  • Keeper
  • Posts: 173
Re: create bots with this plugin
« Reply #62,  »
Quote from GTA-Cheng on August 12th, 03:40 PM
Hello, how do robots work in other worlds?
i think you are trying to set bot's world, just find bot with FindPlayer then set his world
example,
Code: [Select]
if ( cmd == "changeworld" )
{
local plr = FindPlayer(Your ro-bots' nick or id);
plr.World = 512;
}
We are his people !
Who can challenge us ?

SHy^

  • Jr. Member
  • Don't dare to mess
  • Posts: 87
Re: create bots with this plugin
« Reply #63,  »
Quote from KrooB on August 12th, 04:19 PM
Quote from GTA-Cheng on August 12th, 03:40 PM
Hello, how do robots work in other worlds?
i think you are trying to set bot's world, just find bot with FindPlayer then set his world
example,
Code: [Select]
if ( cmd == "changeworld" )
{
local plr = FindPlayer(Your ro-bots' nick or id);
plr.World = 512;
}
btw won't a string will require " in FindPlayer?
e.g FindPlayer("Alex") , correct me if I'm wrong..

gtacheng

  • Newbie
  • Posts: 28

habi

  • Sr. Member
  • Posts: 285
Re: create bots with this plugin
« Reply #65,  »
Code: [Select]
function onScriptLoad()
{
create_actor("emma",65,-688.015, 471.75, 11.0886,0.4);
create_actor("adam",66,-692.949, 471.876, 10.9233,-1.4);
create_actor("mike",74,-691.347, 478.043, 10.9226,-2.7);
}
Code: [Select]
function dance()
{
local plr=FindPlayer(0);
if(plr)plr.SetAnim(28,228);
plr=FindPlayer(1);
if(plr)plr.SetAnim(28,228);
plr=FindPlayer(2);
if(plr)plr.SetAnim(28,228);
}
function onPlayerSpawn(player)
{
dance();
}
the player.SetAnim must be called when each player spawns, otherwise he cannot see them dance.


gtacheng

  • Newbie
  • Posts: 28

SHy^

  • Jr. Member
  • Don't dare to mess
  • Posts: 87

gtacheng

  • Newbie
  • Posts: 28

Athanatos

  • Hero Member
  • sin^2(x)+cos^2(x) = 1
  • Posts: 940
Infected City Survival Main Dev

gtacheng

  • Newbie
  • Posts: 28
Re: create bots with this plugin
« Reply #72,  »

When I tried to open server64, it crashed. I tried to use it on a blank server, but it still crashed. The exception code is c0000005
 :(

Question signature:

Problem event name: AppCrash

Application Name: Doomsday 64 bit launcher.exe

Application version: 0.0.0.0

Application timestamp: 5b3484ee

Fault module name: actor64.dll

Fault module version: 0.0.0.0

Fault module time stamp: 5ef0c10f

Exception code: c0000005

Anomaly migration: 0.000 million 4896

OS version: 6.1.7601.2.1.0.144.8

Locale ID: 2052

Other information 1: 786a

Other information 2: 786ae44addc7ceabe62209252c44be7c

Other information 3: 842d

Other information 4: 842dfb2743b553716ea2e6d37d96dfa8
 :-[
Re: create bots with this plugin
« Reply #73,  »
I'm on the test platform

win 7

win10

The server server 64.exe cannot be opened normally

Open it up and crash again

habi

  • Sr. Member
  • Posts: 285
Re: create bots with this plugin
« Reply #74,  »
there is a problem with actor64.dll. it crashes sometimes. I tried to fix it, but couldn't.
I think it is related to 'hooking vcmp server for recvfrom' function.

I will see if i can fix it.