SRL Archive - Reflection (Archive)

Changes to NPCs.simba will cause errors in old scripts!


Naike

2011-01-09 12:24:41

It was really needed in order for us to have a fully working and not stupidly made NPC routines.. Hope you enjoy it! :)

Bobzilla69

2011-01-09 12:32:16

i just noticed the change while updating/changing my script, good thing i am working on my script so it can be fixed

**BANNED The Man

2011-01-09 12:39:45

Where can we find the changes?
:)

-Boom

mormonman

2011-01-09 12:41:34

SVN Diff.

**BANNED The Man

2011-01-09 12:46:09

From: mormonman
SVN Diff.


Which I can find where?

-Boom

3Garrett3

2011-01-09 12:47:49

From: Dynamite
Which I can find where?

-Boom


This^

mormonman

2011-01-09 12:52:55

Using tortoise svn…for some reason I'm getting errors that I don't get with the include I test with. I'm tracking it down atm.

kitchenrange

2011-01-09 14:18:54

Are you getting type errors if you feed GetNPCsMulti an array that has been given values?

also

Are you getting invalid number of parameters if you actually try to feed it more than one parameter?

Type errors feeding it a single string also…

E: This is assuming you are referring to the automatic update Simba just did.

mormonman

2011-01-09 14:38:53

From: kitchenrange
Are you getting type errors if you feed GetNPCsMulti an array that has been given values?

also

Are you getting invalid number of parameters if you actually try to feed it more than one parameter?

Type errors feeding it a single string also…

E: This is assuming you are referring to the automatic update Simba just did.


Example usage:

npcs := GetNPCsMulti(['spider', 'goblin', 'cow', 324]);
If you pass it an array then it has to be a TVariantArray. You must always bracket single variables. Don't use Multi if you want single variables. Use GetNPCs('spider');

Bobzilla69

2011-01-09 15:02:52

just so that you know the changes to NPCs.simba broke reflection randoms

you can do it by simply doing R_FindRandoms; when the game is loaded and your logged in

{*******************************************************************************
function FindNPCs(TheVar: Variant; var NPCs: TNPCArray): Boolean;
By: lordsaturn/mormonman
Description: If the NPC is found according to TheVar, the NPC is placed in the
NPCs array. Results true if found; false otherwise.

is the line which is wrong obviously

mormonman

2011-01-09 15:15:29

From: bobzilla69
just so that you know the changes to NPCs.simba broke reflection randoms

you can do it by simply doing R_FindRandoms; when the game is loaded and your logged in

{*******************************************************************************
function FindNPCs(TheVar: Variant; var NPCs: TNPCArray): Boolean;
By: lordsaturn/mormonman
Description: If the NPC is found according to TheVar, the NPC is placed in the
NPCs array. Results true if found; false otherwise.

is the line which is wrong obviously


No it didn't. You just need to update again. You should be on revision 205.

Bobzilla69

2011-01-09 15:19:01

ok, just took simba a while to get the updates.

Becks

2011-01-09 15:20:28

From: Dynamite
Which I can find where?

-Boom


maybe this is what you are looking for

http://villavu.com/repositories/srl-opendev/

Wizzup?

2011-01-09 15:44:15

From: bobzilla69
ok, just took simba a while to get the updates.


1 hour, as always. :)

3Garrett3

2011-01-09 16:13:20

From: Becks
maybe this is what you are looking for

http://villavu.com/repositories/srl-opendev/


He was looking for how to find the Diff file. I still don't understand. I have tortoise SVN and I dont see an obvious diff file button? Maybe I need to look harder?

E: Figured it out.

First you need to right click on the Reflection folder. Then click 'Revision Log'. This will bring up the log for all changes. You can then right click on any revision and then choose the option that says 'Unified Diff'. That's what I did, maybe there is other options?

TomTuff

2011-01-09 16:26:52

From: Wizzup?
1 hour, as always. :)


It still says I'm on 204, and it has been a few hours.

mormonman

2011-01-09 16:41:16

From: 3Garrett3
He was looking for how to find the Diff file. I still don't understand. I have tortoise SVN and I dont see an obvious diff file button? Maybe I need to look harder?

E: Figured it out.

First you need to right click on the Reflection folder. Then click 'Revision Log'. This will bring up the log for all changes. You can then right click on any revision and then choose the option that says 'Unified Diff'. That's what I did, maybe there is other options?


You can add Diff to your menu. I forgot it wasn't default for everyone.