#I need help with making my mod working on other machines

1 messages · Page 1 of 1 (latest)

fathom heath
#

I need help

#

I need help with making my mod working on other machines

#

I'm just really confused

crude wraith
#

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

fathom heath
#

Ok so the path would be PromotiveWords?

#

and sentences would be here?

crude wraith
#

yes

fathom heath
#

Ok so yes to both?

#

And I have to re-install vs because I Accidentally installed the enterprise version

crude wraith
#

no thats ok

#

entrepise what? visual studio?

fathom heath
#

yeah

#

@crude wraith is it yes to the path being PromotiveWords/Sentences.txt?

crude wraith
crude wraith
fathom heath
#

so like this?

#

@crude wraith Do you know whats wrong? Do I have to use UITK? and if so how?

crude wraith
#

also

fathom heath
crude wraith
#

why didnt u use munix's template?

fathom heath
#

I am

#

?

crude wraith
#

you're deffinetly not using his template

#

at least you're not wroking on the plugin file that it autocreates

fathom heath
#

I might be using an old one but I am

crude wraith
# fathom heath

move all thats inside the Main() into the FillWindow of the plugin class

#

no ur right!

fathom heath
crude wraith
#

yup

#

put that into a

#

If(GUILayout.Button("new sentence")){

}

fathom heath
crude wraith
#

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;

fathom heath
#

wheres the string line?

crude wraith
fathom heath
#

That entire thing

#

OH

#

WAIT I SEE IT

#

mmmmmmmmmmmmmmm

crude wraith
#

also add Instance. before the PluginFolderPath

fathom heath
#

There

#

Now it time to see

crude wraith
#

now it should be all done!

#

dont forget

#

to set line = newSentence

fathom heath
#

did I put it in the right place?

#

@crude wraith

crude wraith
#

did you build your visual studio project and copy the output to the game?

fathom heath
#

yes

#

ill try again tho

#

Great start

#

still same thing

crude wraith
#

is there any build errors

#

when u build inside visual studio?

fathom heath
#

no

#

no

crude wraith
#

send me your KSP2.log

fathom heath
crude wraith
#

@dapper ibex look at this log pls

#

also @robust bloom

dapper ibex
#

Have you updated Toggle Notifications?

#

I pushed out a new release today. 0.2.5.1

fathom heath
#

oh not yet

dapper ibex
#

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?

fathom heath
#

yes I used it it might have some notification thats conflicting idk

dapper ibex
#

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

fathom heath
#

mmmmmmmm idk. i never really used it so imma unistall it. i think i only used it once

crude wraith
#

just update it

#

you'll deffinetly use it in the future

fathom heath
#

alright

dapper ibex
#

once you update everything, run game again and let me see the ksp2.log

fathom heath
dapper ibex
#

looking at it meow

#

did you uninstall toggle notifications? i dont see any errors from it just a bunch of nullreferenceds for tilldusk

fathom heath
#

no I re-installed both

dapper ibex
#

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

crude wraith
#

MisatoPray thx

dapper ibex
fathom heath
#

should be

dapper ibex
#

oh sinon made till dusk

fathom heath
#

about to say that

dapper ibex
#

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

fathom heath
#

Yeah I'm not sure why my mod isn't working tho

dapper ibex
#

thats the fun part. figuring out how to get it to work

fathom heath
dapper ibex
#

i learned the hard way that just because it compiles doesnt mean it will work in game

fathom heath
#

I barely understand C# so this will be fun

dapper ibex
#

same. it was a brutal 4 weeks of learning

fathom heath
#

@crude wraith Whenever you get a chance. do you find anything that would prevent my mod from working properly?

crude wraith
#

only other thing i can tell you to do is rebuild your vs project

#

it seems like its not getting built

fathom heath
#

I'm taking the mod from Debug. thats how you do it correct?

crude wraith
#

did you rebuild it?

#

or just build it?

fathom heath
#

Build?

#

omg I swear if thats the problem

#

Would that make a problem?

crude wraith
#

have you rebuilt it or not?

#

im pretty sure

#

your mod is not being built correctly

#

cuz it doesnt even update the GUI

fathom heath
#

I just re built it

#

@dapper ibex can you find ANYTHING thats wrong?

#

or that could lead to it not working?

dapper ibex
#

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

fathom heath
#

Yeah would I use GUT

#

*GUI

dapper ibex
#

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

fathom heath
#

soooooo how would I do that?

dapper ibex
#

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

fathom heath
#

Ok

#

But how would I get all my stuff into unity?

dapper ibex
#

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

fathom heath
#

an average day

dapper ibex
#

seems about right