create bots with this plugin

Started by habi, May 11, 2020, 12:49 PM

Previous topic - Next topic

gtacheng

Hello, how do robots work in other worlds?

KrOoB_

Quote from: GTA-Cheng on Aug 12, 2020, 02:40 PMHello, 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,
if ( cmd == "changeworld" )
{
local plr = FindPlayer(Your ro-bots' nick or id);
plr.World = 512;
}

SHy^

Quote from: KrooB on Aug 12, 2020, 03:19 PM
Quote from: GTA-Cheng on Aug 12, 2020, 02:40 PMHello, 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,
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

How to dance? Not through CMD

 :-\

habi

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);
}
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

Maybe I can think of a way to make the robot walk, which may be very good


gtacheng

I love this robot, he added a lot of fun to my server

:XD

SHy^

Quote from: gtacheng on Aug 29, 2020, 01:19 PMMaybe I can think of a way to make the robot walk, which may be very good



player.SetAnim

gtacheng

Hello :-\ :-\ :-\
Why does my console crash :-[

NicusorN5

Quote from: gtacheng on Aug 29, 2020, 03:46 PMHello :-\ :-\ :-\
Why does my console crash :-[
Do you even provide the crash memory adresses: error code atleast?

gtacheng


gtacheng


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
 :-[

gtacheng

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

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.