SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 02/07/2012, 11:50 AM   #21
Meta
Gangsta
 
Meta's Avatar
 
Join Date: Feb 2010
Posts: 624
Reputation: 47
Default AW: RNPC - Recordfree NPCs | Control NPCs without recording | DEV

um cool but I better wait for Alex009 to rerelease CNPC ^^
Meta is offline   Reply With Quote
Old 02/07/2012, 12:37 PM   #22
AIped
Gangsta
 
AIped's Avatar
 
Join Date: Feb 2011
Location: Netherlands
Posts: 618
Reputation: 46
Default Re: RNPC - Recordfree NPCs | Control NPCs without recording | DEV

he wont continue his work
AIped is offline   Reply With Quote
Old 02/07/2012, 02:02 PM   #23
TheArcher
High-roller
 
TheArcher's Avatar
 
Join Date: Dec 2009
Location: Home
Posts: 2,334
Reputation: 251
Default Re: AW: RNPC - Recordfree NPCs | Control NPCs without recording | DEV

Quote:
Originally Posted by Meta View Post
um cool but I better wait for Alex009 to rerelease CNPC ^^
We still speaking about memory hacking which is against the rules. CNPC could be released somewhere else but not on this forums as far as i know. And the addresses could change on any SAMP release so that's the hard part.
__________________
TheArcher is offline   Reply With Quote
Old 02/07/2012, 04:31 PM   #24
Mauzen
High-roller
 
Mauzen's Avatar
 
Join Date: Jun 2007
Location: Western Germany
Posts: 4,878
Reputation: 1597
Default Re: RNPC - Recordfree NPCs | Control NPCs without recording | DEV

Quote:
Originally Posted by Babul View Post
@Mauzen: <Removed: This is the English language section.>
<Removed: This is the English language section.>


@CNPC disucssion: CNPC is admittedly on an higher level than this. This plugin just makes use of the existing possibilities, while CNPC bypasses them and accesses the NPCs directly. The memory hacking was okay for the samp team, until it was used to fake the server player count. This shows that its easy to do illegal things as soon as you use memory hacking, thats why i dont wanna do it (and because i cant do it anyways )

@AIped: Im indeed not sure about this yet, but it might be possible. They can at least be put in cars using the normal samp functions. Syncing it nicely with animations would be the worst-case way to do it.


So, finished my work for today, time to continue with the plugin
Mauzen is offline   Reply With Quote
Old 02/07/2012, 05:03 PM   #25
TheArcher
High-roller
 
TheArcher's Avatar
 
Join Date: Dec 2009
Location: Home
Posts: 2,334
Reputation: 251
Default Re: RNPC - Recordfree NPCs | Control NPCs without recording | DEV

Quote:
Originally Posted by Mauzen View Post

So, finished my work for today, time to continue with the plugin
The first feature i want to see is NPC in vehicles. (possible PutNPCInVehicle)
__________________
TheArcher is offline   Reply With Quote
Old 02/07/2012, 05:14 PM   #26
Mauzen
High-roller
 
Mauzen's Avatar
 
Join Date: Jun 2007
Location: Western Germany
Posts: 4,878
Reputation: 1597
Default Re: RNPC - Recordfree NPCs | Control NPCs without recording | DEV

Quote:
Originally Posted by TheArcher View Post
The first feature i want to see is NPC in vehicles. (possible PutNPCInVehicle)
Working on this, but at first im gonna rewrite the generation code, else id have to rewrite it for both on-foot and vehicles afterwards
Mauzen is offline   Reply With Quote
Old 02/07/2012, 06:10 PM   #27
TheArcher
High-roller
 
TheArcher's Avatar
 
Join Date: Dec 2009
Location: Home
Posts: 2,334
Reputation: 251
Default Re: RNPC - Recordfree NPCs | Control NPCs without recording | DEV

Quote:
Originally Posted by Mauzen View Post
Working on this, but at first im gonna rewrite the generation code, else id have to rewrite it for both on-foot and vehicles afterwards
Great news can't wait. I've already prepared everything for the release
__________________
TheArcher is offline   Reply With Quote
Old 02/07/2012, 07:53 PM   #28
Mauzen
High-roller
 
Mauzen's Avatar
 
Join Date: Jun 2007
Location: Western Germany
Posts: 4,878
Reputation: 1597
Default Re: RNPC - Recordfree NPCs | Control NPCs without recording | DEV

Quote:
Originally Posted by [HLF]Southclaw View Post
Sweet Mother Of God

I can FINALLY get my zombie script back up and start coding some INTELLIGENCE

I love you, thank you for releasing this!
Hehe, youre welcome

Reporting back from my current progress: I just finished rewriting the generation code. The code looks a lot nicer now (probably its still a nightmare for real c++ coders) and is about 4 times faster than the old one (some numbers - bare include: 53 calls/s, old code: 255, new code 1050). Never tested the speed before, but I thought it would be faster at all, however its realistically useable now
With more optimisation the speed will probably go up a lot more.
So now I'll start adding vehicle support, and hope i can upload the next version today
Mauzen is offline   Reply With Quote
Old 02/07/2012, 09:40 PM   #29
Mauzen
High-roller
 
Mauzen's Avatar
 
Join Date: Jun 2007
Location: Western Germany
Posts: 4,878
Reputation: 1597
Default Re: RNPC - Recordfree NPCs | Control NPCs without recording | DEV

Hehe nice use of it.

Any NPC pros around? Maybe im just missing a stupid tiny thing.
I cant get my testnpc joining a vehicle, no matter what I try. PutPlayerInVehicle does nothing at all, neither in OnPlayerSpawn nor via a command. the npc remains unmoved, and OnNPCEnterVehicle is not called. Got to be some problem with the script. The npc script is almost unchanged since 0.1, the gamemode is an almost untouched lvdm.
Vehicle support is ready to be tested, but i cant test it that way.

Edit: The PutPlayerInVehicle even "bugs" the npc, afterwards he doesnt play back recordings at all and leaves the server. Seems like he would just enter the vehicle "a bit" so hes waiting for vehicle recordings, but is still on foot.

Edit2: He accepts vehicle recordings after PutPlayerInVehicle and plays them back. Hm I thought he would at least idle in the vehicle, no callbacks are called, IsPlayerInAnyVehicle is useless, so its really hard to determine if a npc is in "vehicle mode" or not.

Last edited by Mauzen; 02/07/2012 at 10:11 PM.
Mauzen is offline   Reply With Quote
Old 02/07/2012, 10:27 PM   #30
TheArcher
High-roller
 
TheArcher's Avatar
 
Join Date: Dec 2009
Location: Home
Posts: 2,334
Reputation: 251
Default Re: RNPC - Recordfree NPCs | Control NPCs without recording | DEV

According with Southclaw, and i guess we had some ideas about our future plans and using the plugin, this could be a challenge , anyways i really needed PutPlayerInVehicle and IsPlayerInVehicle for NPCs, still waiting for future release.
__________________
TheArcher is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Control NPCs using Paths? Programie Scripting Help 2 16/06/2012 02:49 PM
Help with recording two npcs at once marharth Help Archive 3 13/08/2010 03:14 AM
Recording NPCs animation with new version (0.3b) Hernaner28 Help Archive 0 12/08/2010 01:17 AM
No NPCs regdude Server Support 5 08/07/2010 05:54 PM
[HELP] Npcs armyoftwo Help Archive 3 05/12/2009 08:43 AM


All times are GMT. The time now is 07:45 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.