Data Realms Fan Forums
http://45.55.195.193/

Device Viewer, or reload device .ini
http://45.55.195.193/viewtopic.php?f=73&t=20975
Page 1 of 1

Author:  Yoman987 [ Fri Dec 31, 2010 12:01 pm ]
Post subject:  Device Viewer, or reload device .ini

There is a 'button' in the pie menu in the Actor Viewer that says 'Reload Code' or some ♥♥♥♥. I want to reload the code for a device in the same way so that I can get offsets right without booting the game every 20 seconds.

I seem to remember someone saying you can reload a .rte through the console. How so?

Author:  findude [ Fri Dec 31, 2010 3:28 pm ]
Post subject:  Re: Device Viewer, or reload device .ini

Can't.

Make a CopyOf = Soldier Light, rename it and give it the device in question.

Author:  Lizardheim [ Fri Dec 31, 2010 5:45 pm ]
Post subject:  Re: Device Viewer, or reload device .ini

if you define a copy of a coalition in the index, I'm pretty sure you can.

Author:  Yoman987 [ Sat Jan 01, 2011 7:07 am ]
Post subject:  Re: Device Viewer, or reload device .ini

So technically I can make an actor with the null image and make it 'hold' this device? Would that work?

EDIT: Tried it, successfully made an invisible actor with a head, torso and FG arm and holding the device. However, it doesn't reload the device's code when it reloads the actor's code, which is not surprising.

Surely there is a Lua function to do it?

EDIT2: I searched in the offline Lua docs and found these. What do they do?
Code:
PresetMan:LoadDataModule
PresetMan:ReloadAllScripts

Author:  mail2345 [ Sat Jan 01, 2011 9:14 am ]
Post subject:  Re: Device Viewer, or reload device .ini

Latter only reloads Lua, former may or may not crash/work.

Author:  Yoman987 [ Sat Jan 01, 2011 9:14 am ]
Post subject:  Re: Device Viewer, or reload device .ini

Found it. Search helped, but I had to be a little obscure.

If you put 'IncludeFile = Path.rte/MyDevice.ini' into an actor, everytime you reload the actor it reloads the device you want.

Found HERE, solved by Grif NUMGUN.

Author:  findude [ Sat Jan 01, 2011 3:03 pm ]
Post subject:  Re: Device Viewer, or reload device .ini

Seriously...?

findude wrote:
Can't.

Make a CopyOf = Soldier Light, rename it and give it the device in question.

Author:  Yoman987 [ Sat Jan 01, 2011 3:21 pm ]
Post subject:  Re: Device Viewer, or reload device .ini

You missed an important step which numgun caught (not Grif, my mistake. Sorry :-( )

findude wrote:
Make a CopyOf = Soldier Light, rename it and give it the device in question.
This implied to me that all I had to do was 'AddInventoryItem = ', which I quickly found didn't work.

numgun wrote:
IncludeFile ... in the beginning of the actor's .ini file. This would allow instantly to reload the whole thing through the actor viewer.

Author:  Grif [ Sun Jan 02, 2011 2:58 am ]
Post subject:  Re: Device Viewer, or reload device .ini

if you're reloading a device, then what you should do is put the copyof actor snippet at the end of the main device code.

any includes will be reloaded automatically (though why anyone would split ammo/effects/weapons is beyond me) and there's no need to fiddle with another .ini

Author:  Yoman987 [ Sun Jan 02, 2011 5:43 am ]
Post subject:  Re: Device Viewer, or reload device .ini

All I've done is make another index that contains all my Devices , rounds and magazines, then put the IncludeFile of that ini into the invisible actor I made. works like a charm and even helps with the JointOffsets of the firearm.

Case closed, and thanks for all the fish.

Page 1 of 1 All times are UTC [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/