View unanswered posts | View active topics It is currently Sun Jan 05, 2025 4:05 am



Reply to topic  [ 7 posts ] 
 Instance name\present name ? 
Author Message
User avatar

Joined: Mon Aug 18, 2008 5:29 pm
Posts: 607
Location: Ukraine,Odessa in the ASC bunker-base
Reply with quote
Post Instance name\present name ?
Whats better to use ? And i know b21 use present names, so if i change present on instance i can use any b21 mod(not the lua anyway)?


Mon Sep 29, 2008 9:44 am
Profile
User avatar

Joined: Tue Apr 01, 2008 4:49 pm
Posts: 1972
Location: The Netherlands
Reply with quote
Post Re: Instance name\present name ?
I'd go with PresetName, although I have no idea why it was changed.
Be sure to spell it right when you change it though: PresetName, not PresentName. ;)


Mon Sep 29, 2008 9:53 am
Profile
User avatar

Joined: Mon Aug 18, 2008 5:29 pm
Posts: 607
Location: Ukraine,Odessa in the ASC bunker-base
Reply with quote
Post Re: Instance name\present name ?
Ok,Thx.


Mon Sep 29, 2008 10:18 am
Profile
User avatar

Joined: Tue Dec 12, 2006 3:10 pm
Posts: 495
Location: Uncertain quantum state
Reply with quote
Post Re: Instance name\present name ?
I think PresetName should be used for the "original" objects etc.
and InstanceName when making a CopyOf.
Or the other way around, I'm not sure.
Making CopyOf's and just changing stuff doesn't seem to work always,
you need to supply a InstanceName now.


Mon Sep 29, 2008 12:24 pm
Profile
User avatar

Joined: Tue Aug 21, 2007 2:55 pm
Posts: 948
Reply with quote
Post Re: Instance name\present name ?
I think Data is just replacing some old stuff but is doing it more gently this time around, so we don't need to convert every single mod.


Mon Sep 29, 2008 12:36 pm
Profile
User avatar

Joined: Fri Apr 27, 2007 4:55 pm
Posts: 1178
Location: America!
Reply with quote
Post Re: Instance name\present name ?
Use PresetName. InstanceName is only still there for compatability, and I don't know how long it will continue to be there.

Anyways, all the Lua code uses PresetName.

actor.InstanceName gives you nothing.
actor.PresetName gives you the name.


Mon Sep 29, 2008 3:14 pm
Profile
User avatar

Joined: Mon Aug 18, 2008 5:29 pm
Posts: 607
Location: Ukraine,Odessa in the ASC bunker-base
Reply with quote
Post Re: Instance name\present name ?
Ok , i understood.


Mon Sep 29, 2008 3:17 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 7 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.064s | 13 Queries | GZIP : Off ]