Modselector, Replace value below insert line

Posts 1–7 of 7 · Page 1 of 1
Modselector, Replace value below insert line
I was wondering if it's possible to replace the line / lines below the insert line specified in the mod xml file with the new line / lines grabbed from the said txt file.

If this is possible I need information on how you'd do this becuase I need to replace some traits with new values.
if you can't replace lines can you replace specific values in an already defined trait somehow?

example
 
example

trait const QName(PrivateNamespace("*", "_-EXAMPLE"), "_-EXAMPLE") slotid 1 type QName(PackageNamespace("", "#0"), "int") value Integer(old_value) end

trait const QName(PrivateNamespace("*", "_-EXAMPLE"), "_-EXAMPLE") slotid 1 type QName(PackageNamespace("", "#0"), "int") value Integer(new_value) end


Completely identical except the actual value as shown in my bad example above
Not sure if it works, but can't the old value be popped out from stack? And then replaced?
If you have visual studios I can show you how to automate this. I also rewrote the mod selector code that reads the .xml files that I can send you (VB.net)

You know how the current xml file has:
Mod
Code
Line
.txt
Code
Line
.txt
Mod

I could add in a new function like
Remove
Line

Replace
Line
.txt

I'm releasing the capability for my tool to read current mod files in as soon as I get Lavawalls fixed
Quote Originally Posted by maat7043 View Post
If you have visual studios I can show you how to automate this. I also rewrote the mod selector code that reads the .xml files that I can send you (VB.net)

You know how the current xml file has:
Mod
Code
Line
.txt
Code
Line
.txt
Mod

I could add in a new function like
Remove
Line

Replace
Line
.txt

I'm releasing the capability for my tool to read current mod files in as soon as I get Lavawalls fixed
That sounds amazing!
Quote Originally Posted by CrazyJani View Post
Not sure if it works, but can't the old value be popped out from stack? And then replaced?
Certain things can, but you run into issues altering local counts and such
Quote Originally Posted by CrazyJani View Post
That sounds amazing!
If you want to input how it works. Post a modified XML in code brackets here or in a pm and I'll add it for you
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us