Posts: 2,938
Threads: 162
Joined: May 2010
29.04.2015, 13:20
(
Последний раз редактировалось Kar; 29.04.2015 в 14:04.
)
Quote:
Originally Posted by Kalcor
Actors can't just walk anywhere because the server isn't running the game. There is no way to know how long it takes to get from point A to point B if there are unknown obstructions blocking the path.
That's why NPCs ended up having to use recordings. The only alternative was have players (which are running the game) sync them, and even the players do not have all of the San Andreas map data loaded at any given time.
It didn't seem like a good idea (in a game with 100's of players in the server) to have players responsible for syncing the actors. Players could easily mess with that data and disrupt the game.
So I can't easily add a function to make actors run to a certain point because it would not sync in all cases -- and scripters here would be crying "bug, bug!" even though it's just a limitation of what SA-MP is working with.
|
What about the syncing the GTASA actor task system?
Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
If only..
[ame]http://www.youtube.com/watch?v=Pbw0GhWO1a8[/ame]
[ame]http://www.youtube.com/watch?v=u5qm1TgYj8E[/ame]
Posts: 1,840
Threads: 399
Joined: Oct 2010
Reputation:
0
@KyleSmith: Thats awesome. I really like to see something like this with the new actor system.
Posts: 2,938
Threads: 162
Joined: May 2010
I think players should be allowed to sync the actors but you're pretty scared of that.
I have a better idea, give us control of WHO syncs the actor.
SetActorSyncer(actorid, playerid);
We will do the rest, checking their network for packet loss and other stuff.. etc.
Posts: 3,934
Threads: 353
Joined: Jan 2010
Reputation:
0
Those videos are actually brilliant.
Posts: 1,276
Threads: 6
Joined: Aug 2014
Those videos.
Posts: 618
Threads: 31
Joined: Feb 2011
Reputation:
0
29.04.2015, 20:35
(
Последний раз редактировалось AIped; 29.04.2015 в 20:35.
Причина: typo
)
Finaly a word out from Kalcor about why some things about actors an npcs cant be like we want or what he is dealing with.
Alot of people responded at your post Kalcor i hope you have more answers for us..there must be a way to solve the problems.
NPCs be free!
Posts: 1,180
Threads: 55
Joined: Apr 2005
Reputation:
0
The 0.2.5 actors were not synced. What you are seeing in those videos is essentially just GTA:SA's single player AI. I could go and add everything from single player to SA-MP including all the street peds, but it wouldn't synced, so what's the point?
We never released anything to do with 0.2.5 actors. What you see in those videos was leaked by someone passwording a beta team member on this forum. That stuff was added for testing only and I figured out quickly it would not work well with the way SA-MP was designed. What those videos aren't showing you is that the actors could only drive for around 200 meters around the player.
I added the actor system in 0.3.7 because I could see someone wanting to complete their server scripted casino but they didn't want to set up a whole bunch of NPCs. I had no intention of extending it beyond that for 0.3.7.
SA-MP will probably never have peds that can roam around freely, or drive cars by AI. It has already been attempted many times by different people, including myself. There have been various hacks to do bots/extended NPCs and they haven't been that popular. There has never been a great enough demand from the servers that hold most of SA-MP's players to focus time and resources on AI.
Posts: 36
Threads: 6
Joined: Feb 2015
Quote:
Originally Posted by Kalcor
The 0.2.5 actors were not synced. What you are seeing in those videos is essentially just GTA:SA's single player AI. I could go and add everything from single player to SA-MP including all the street peds, but it wouldn't synced, so what's the point?
We never released anything to do with 0.2.5 actors. What you see in those videos was leaked by someone passwording a beta team member on this forum. That stuff was added for testing only and I figured out quickly it would not work well with the way SA-MP was designed. What those videos aren't showing you is that the actors could only drive for around 200 meters around the player.
I added the actor system in 0.3.7 because I could see someone wanting to complete their server scripted casino but they didn't want to set up a whole bunch of NPCs. I had no intention of extending it beyond that for 0.3.7.
SA-MP will probably never have peds that can roam around freely, or drive cars by AI. It has already been attempted many times by different people, including myself. There have been various hacks to do bots/extended NPCs and they haven't been that popular. There has never been a great enough demand from the servers that hold most of SA-MP's players to focus time and resources on AI.
|
MTA did it.
Posts: 1,042
Threads: 46
Joined: Jun 2013
Quote:
Originally Posted by kurta999
MTA didn't have any help from Rockstar, and MTA didn't saw GTA source code! MTA is open source, and there are many developers, that's all..
https://github.com/multithe ftauto/mtasa-blue/commits/master
Just check it.
|
the link does not work
Posts: 36
Threads: 6
Joined: Feb 2015
Quote:
Originally Posted by Kalcor
If they did it is most likely like SA-MP's 0.2.5 actor system and not properly synced for all players.
|
Nope, they are synced throughout all players. It's nothing like SA-MP's 0.2.5 actor system, the AI in MTA can drive vehicles etc and you can have around 300 synced AI in one area fully synced without any lag. I personally used MTA to complete a gamemode which I first wrote in SA:MP but the NPC was pretty hard to complete. This was a gamemode that needed random AI etc for police simulation. I finished it on MTA using their AI, al though it would be fantastic for SA-MP to have fully synced AI as after all SA-MP is the most popular multiplayer mod for SA.
Posts: 36
Threads: 6
Joined: Feb 2015
Here is MTA synced AI (also shows the possibilities with it)
[ame]http://www.youtube.com/watch?v=STx9v9H_J18[/ame]
Skip to around 0:30
But yeah, that's just a response to your statements. I love SA-MP and let's stick on topic!
Posts: 2,862
Threads: 11
Joined: Mar 2008
Reputation:
0
Well, the solution would be to make a special client that would run on windows server (that would also have game installed) which would actually give real server possibility to access game AI and all other game data. Just thoughts.