#I need help with making my mod working on other machines
1 messages · Page 1 of 1 (latest)
I need help with making my mod working on other machines
I'm just really confused
for your mod to work with other machines you just need to change your path to
"{PluginFolderPath}/sentences.txt"
and put the sentences under BepInEx/plugins/YOUR PLUGIN NAME/sentences.txt
yes
Ok so yes to both?
And I have to re-install vs because I Accidentally installed the enterprise version
the path wher eyou have to put the files yeah
but in code should be this
so like this?
@crude wraith Do you know whats wrong? Do I have to use UITK? and if so how?
why didnt u use munix's template?
you're deffinetly not using his template
at least you're not wroking on the plugin file that it autocreates
I might be using an old one but I am
move all thats inside the Main() into the FillWindow of the plugin class
no ur right!
Here?
great
now
you forgot the $ before the path btw
now, everytime you press the button "new sentence" it will execute that code
so set the static string line; to whatever string you want it to show
also, before the if(GUILayout.Button) put
GUILayout.Label(line);
and dont forget to put string line; as static string line;
wheres the string line?
there
also add Instance. before the PluginFolderPath
did you build your visual studio project and copy the output to the game?
send me your KSP2.log
will do give me a sec
Have you updated Toggle Notifications?
I pushed out a new release today. 0.2.5.1
oh not yet
I'm curious why it's not playing friends with till dusk as it has nothing to do with my mod
im assuming you have Till Dusk mod installed?
yes I used it it might have some notification thats conflicting idk
I've only got 163 lines on my current build. so i dont have a line 165 to look at to see what happened
what i would do: update the mod to the current version 0.2.5.1 (spacedock or ckan)
run game again and see if you get errors. i dont use till dusk so ill download it and see if i get errors
mmmmmmmm idk. i never really used it so imma unistall it. i think i only used it once
alright
once you update everything, run game again and let me see the ksp2.log
looking at it meow
did you uninstall toggle notifications? i dont see any errors from it just a bunch of nullreferenceds for tilldusk
alright so on my end toggle notifications seems to work fine. i see no errors for it. are you able to use it in game just fine?
yup 0.2.5.1 is the newest release, which came out today
thx
did shadow make til dusk?
should be
oh sinon made till dusk
about to say that
no worries. glad toggle notifications works for ya! if you run into any bugs just tag me in the #1079110458969165864 #1103906880948027476 and ill update it. ive got a few more things to add to it until I release it as 1.0
Yeah I'm not sure why my mod isn't working tho
thats the fun part. figuring out how to get it to work
i learned the hard way that just because it compiles doesnt mean it will work in game
I barely understand C# so this will be fun
same. it was a brutal 4 weeks of learning
@crude wraith Whenever you get a chance. do you find anything that would prevent my mod from working properly?
only other thing i can tell you to do is rebuild your vs project
it seems like its not getting built
I'm taking the mod from Debug. thats how you do it correct?
have you rebuilt it or not?
im pretty sure
your mod is not being built correctly
cuz it doesnt even update the GUI
I just re built it
@dapper ibex can you find ANYTHING thats wrong?
or that could lead to it not working?
looking meow
you're having it write to the console
so in VS does the script work?
thats not how youll want to script this to write in a textbox in game
you wont want to use Console.Writeline
its definitely going to be GUI but you'll want to use UITK to do it
which means most of your script won't do much other than create the plugin
then in unity is where youll do all of your work, and scripting
soooooo how would I do that?
to make it work using ONLY VS, you're going to need to organize and keep your code neat and short. as well as looking at what youll need to modify exactly to display a text on screen
as far as UITK i havent done it that way, but munix and lux are very familiar with it
the #1114994858017423460 you can scroll through and it will have a lot of useful info
look at the github as it gives directions on how to use UITK
the readme is super useful
it will tell you exactly how to set it up and use it in unity
as well as providing a template
https://github.com/jan-bures/UitkTestMod thats the template project
an average day
seems about right