#Help with plugins

1 messages · Page 1 of 1 (latest)

steady fiber
#

Dont understand how to get it work.
Downloaded grasscutter.jar
Showed him where he is
Downloaded and put the files in the folder resources and added gc commander in the folder plugins
But when I start the game in the console errors and nothing works.

hushed stream
#

what kinda error?

frank haven
#

I'd really suggest having your Grasscutter anywhere other than your game folder as well, it's cleaner and keeps things better organized

steady fiber
frank haven
#

You're missing resources

#

You can refer to the instructions from the pinned thread for "Resource Errors": #1024798229272989717 message (for doing it manually)

#

Since you're using Cultivation I'd really strongly suggest using the All-in-one download from the Cultivation downloads menu

steady fiber
frank haven
#

No

#

If you're doing 3.2 use 3.2 resources, you can change the branch in the link there

steady fiber
#

I whant to play on my own server

frank haven
steady fiber
frank haven
#

The jar you have isn't going to work with 3.2 though just as a heads up

#

If anything I'd suggest using the full 3.2 build instead of putting it together manually since you're already a bit lost on the setup: #resources message

#

This one is already fully set up so you just need to delete config.json and rename the 'config cultivation rename me'.json or whatever it is called to config.json instead

steady fiber
frank haven
#

No the Grasscutter3.2 folder is the full setup

#

You can leave the resources and just use the contents of Grasscutter3.2

steady fiber
#

ok, now in console it have 0 error
Now i can install gc commander ?

frank haven
#

yeah

steady fiber
#

gc commander need older version or new will be fine ?

frank haven
#

not sure but plugins typically are cross-version compatible

steady fiber
#

but GrassCutter tool dont see it

frank haven
#

you have to use http://127.0.0.1:443 since you have encryption disabled

#

as the address in GC tools

steady fiber
#

Please connect to the server that supports open commands first

#

Im doing something wrong

#

I apologize for my stupidity.

frank haven
#

In the remote tab on the app make sure to set the connection address to http://127.0.0.1:443 it should be near the top of the tab

steady fiber
frank haven
#

You need to use either player or console token to connect to the account

#

player is easiest

#

goes like this

#

after step 3 you get a code in-game, you put that in for 4 and then 5 to connect

steady fiber
#

in game my UID is 1

#

but its incorrect

frank haven
#

You put 1 in the uid and hit send code? Then you will get a code in game

steady fiber
frank haven
#

Are you positive the uid is 1 and you are currently logged in?

#

Make sure you're in-game, and then just verify the uid in the bottom right matches

#

If it won't take it from there you'll need to use console token instead

steady fiber
#

ill try

frank haven
#

This screenshot doesn't show the actual uid so I'll take your word it's the same. Yeah just use console token instead then, it needs to be set in the plugin's config file

#

that is in grasscutter\plugins\OpenCommand\

steady fiber
steady fiber
#

putted some numbers and restarting server now

frank haven
#

yes

steady fiber
# frank haven yes

with console token its working but player not found after i use commands

#

maybe its because im using test account ?

frank haven
#

Shouldn't matter since any account can be connected to. Maybe make a new one without specifying the uid in the create command, then use the full uid it makes (should be like 10001) and try

steady fiber
#

ill check this later
thx for helping but now i need to go
text later

frank haven
#

Sure thing

steady fiber
# frank haven Sure thing

im here
so i think i found the problem
In server status i saw player count 0
maybe i need to open port 443 or play more ?

#

im creating account with login and UID 10001
but in game its just 1 numbet (1, 2 , 3 , 4 )
i have now 4 accounts

frank haven
#

Sounds like you're connecting to a different server than your own, what address are you connecting to in Cultivation?

steady fiber
frank haven
#

Make sure you're using that address in the app

#

so http://192.168.1.172:443 instead of the other one

steady fiber
#

In GcTools-v1.8.1 ?

frank haven
#

Yeah

steady fiber
frank haven
#

you're hosting grasscutter on 192.168.1.172 right?

steady fiber
#

I dont know
Just installed that grasscutter that you gived to me

frank haven
#

Ok then it's on localhost, so in Cultivation connect to localhost instead and use http://127.0.0.1:443 in the app. That way we can just be sure all the connections are how they should be

#

Connecting to your local ipv4 works since you're still the host but connecting directly would be a good thing just to make sure the app can recognize everything properly

steady fiber
frank haven
#

Leave the windows proxy alone, it's correct

steady fiber
#

im still can connect to server from game

frank haven
#

The app won't connect to http://127.0.0.1:443 ? You still have the plugin right?

#

Make sure the plugin says it loaded successfully and that the address is correct in the remote tab on the app

steady fiber
#

21:11:06 INFO:Grasscutter Game version: 3.2.0
21:11:06 INFO:Grasscutter Grasscutter version: 1.4.4-dev-553e22e
21:11:06 INFO:ResourceLoader Loading resources...
21:11:07 INFO:ResourceLoader Finished loading resources.
21:11:07 INFO:Language Loading cached TextMaps
21:11:08 INFO:Tools GM Handbooks generated!
Exception in thread "main" com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused: no further information}}]
at com.mongodb.internal.connection.BaseCluster.getDescription(BaseCluster.java:177)
at com.mongodb.internal.connection.SingleServerCluster.getDescription(SingleServerCluster.java:41)
at com.mongodb.client.internal.MongoClientDelegate.getConnectedClusterDescription(MongoClientDelegate.java:127)
at com.mongodb.client.internal.MongoClientDelegate.createClientSession(MongoClientDelegate.java:87)
at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.getClientSession(MongoClientDelegate.java:258)
at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:182)
at com.mongodb.client.internal.MongoCollectionImpl.executeCreateIndexes(MongoCollectionImpl.java:847)
at com.mongodb.client.internal.MongoCollectionImpl.createIndexes(MongoCollectionImpl.java:830)
at com.mongodb.client.internal.MongoCollectionImpl.createIndexes(MongoCollectionImpl.java:825)
at com.mongodb.client.internal.MongoCollectionImpl.createIndex(MongoCollectionImpl.java:810)
at dev.morphia.annotations.builders.IndexHelper.createIndex(IndexHelper.java:220)
at dev.morphia.annotations.builders.IndexHelper.createIndex(IndexHelper.java:210)
at dev.morphia.DatastoreImpl.ensureIndexes(DatastoreImpl.java:186)
at emu.grasscutter.database.DatabaseManager.ensureIndexes(DatabaseManager.java:89)
at emu.grasscutter.database.DatabaseManager.initialize(DatabaseManager.java:70)
at emu.grasscutter.Grasscutter.main(Grasscutter.java:118)

civic zenithBOT
# steady fiber 21:11:06 <INFO:Grasscutter> Game version: 3.2.0 21:11:06 <INFO:Grasscutter> Gras...

Open the start menu (either click the icon or press the Windows key), type services into the Windows search bar and open the Services app, find the MongoDB service and press the button to start it. If you cannot find it in your service list, you must download MongoDB from https://www.mongodb.com/try/download/community. MongoDB Compass is not related to or required for this, but it is recommended to install MongoDB Compass so that you can fix any database-related issues if your game breaks.

steady fiber
#

I have deleted MongoDB.
This is problem maybe ?

frank haven
#

Ah your server exited, yes you need MongoDB for Grasscutter to run

steady fiber
#

21:29:07 INFO:Grasscutter Starting Grasscutter...
21:29:07 INFO:Grasscutter Game version: 3.2.0
21:29:07 INFO:Grasscutter Grasscutter version: 1.4.4-dev-553e22e
21:29:07 INFO:ResourceLoader Loading resources...
21:29:08 INFO:ResourceLoader Finished loading resources.
21:29:08 INFO:Language Loading cached TextMaps
21:29:09 INFO:Tools GM Handbooks generated!
21:29:10 INFO:DataLoader Loading data table from: .\data\Banners.json
21:29:10 INFO:PluginManager Loading plugin: CharacterBuilder
21:29:10 INFO:PluginManager Loading plugin: GiveArtifactSnoo
21:29:10 ERROR:PluginManager Failed to load plugin: JGrasscutterCommand-0.4.0.mirai2.jar
java.lang.NullPointerException: Cannot invoke "java.net.URL.openStream()" because "configFile" is null
at emu.grasscutter.plugin.PluginManager.loadPlugins(PluginManager.java:83)
at emu.grasscutter.plugin.PluginManager.<init>(PluginManager.java:29)
at emu.grasscutter.Grasscutter.main(Grasscutter.java:131)
21:29:10 INFO:PluginManager Loading plugin: opencommand-plugin
21:29:10 INFO:PluginManager Loading plugin: setLevel
21:29:10 INFO:PluginManager Loading plugin: Switch Element Plugin
21:29:10 INFO:Switchele The SwitchElement has been loaded.
21:29:10 INFO:HttpServer [Dispatch] Dispatch server started at 127.0.0.1:443
21:29:10 INFO:GameServer Grasscutter is FREE software. If you have paid for this, you may have been scammed. Homepage: https://github.com/Grasscutters/Grasscutter
21:29:10 INFO:GameServer Game Server started at 127.0.0.1:22102
21:29:10 INFO:PluginManager Enabling plugin: CharacterBuilder
21:29:10 INFO:CharacterBuilder The CharacterBuilder plugin has been enabled.
21:29:10 INFO:PluginManager Enabling plugin: GiveArtifactSnoo
21:29:10 INFO:GiveArtifactSnoo The Give Artifact plugin has been enabled.
21:29:10 INFO:PluginManager Enabling plugin: opencommand-plugin
21:29:10 INFO:OpenCommandPlugin [OpenCommand] Enabled
21:29:10 INFO:PluginManager Enabling plugin: setLevel
21:29:10 INFO:setLevel The setLevel plugin has been enabled.
21:29:10 INFO:PluginManager Enabling plugin: Switch Element Plugin
21:29:10 INFO:Switchele The SwitchElement has been enabled.
21:29:10 INFO:Grasscutter Done! For help, type "help

GitHub

A server software reimplementation for a certain anime game. - GitHub - Grasscutters/Grasscutter: A server software reimplementation for a certain anime game.

frank haven
#

Looks like one plugin failed to load due to a config file not existing

#

It's probably just due to the plugin being old, building it with current grasscutter jar as dependency will likely fix it

steady fiber
#

21:29:10 ERROR:PluginManager Failed to load plugin: JGrasscutterCommand-0.4.0.mirai2.jar you are about this ?

#

if yes im added this plugin

#

now i can connect to http://127.0.0.1:443 in GrasscutterTools

#

But maybe its not need to be here

frank haven
#

Ah yeah you don't need it if you just want to use GCTools

#

you only need opencommand and GCTools for running commands from it

steady fiber
#

Its ok or delete all ?

frank haven
#

The rest of those are all ok

steady fiber
#

Proxies cause me to lose internet from time to time and I have to turn them off before the server starts up

#

im restarting server now

#

maybe in config file change localhost ip to 192.168.1.172:443 ?

#

I have an idea.
I should try it

#

no my idea not working (

frank haven
#

You losing internet is just because the windows proxy is still on when the Cultivation proxy is off, make sure you're using Cultivation 1.0.25 and installed from the .msi and that shouldn't happen except in rare circumstances

steady fiber
#

I'll deal with the Internet later.
I would like to understand why CG tool does not want to see my account(

steady fiber
frank haven
#

I wouldn't do that personally, it shouldn't really change anything since you're hosting and connecting from the same machine already

frank haven
#

Ahh then that is a different thing yes, you may want to host on your local ipv4 instead

steady fiber
#

"bindPort": 443,
"accessAddress": "127.0.0.1",
"accessPort": 0,
"encryption": {
"useEncryption": false,
"useInRouting": false,

changing to my ipv4 ?

frank haven
#

yes that accessAddress and the other one further down in the config as well

steady fiber
#

I can connect
But the program still does not see the account.

#

No matter what ip I enter in that config
I can still connect 192.168.1.170:443 with app

frank haven
#

You'll likely just have to copy/paste commands from the app then if it won't recognize your player through connection

#

I tested it with the current version locally myself and there were no problems, but I'm hosting Grasscutter on my pc (not a VM) and connecting to the game from the same pc

steady fiber
#

I think I misunderstood you.
I host the genshin server via vm
I have a server on my computer.

I did not install grasscutter additionally on the server on VM

steady fiber
#

ill try tomorrow

frank haven
#

To the server user on your friends list, in chat in-game

steady fiber
steady fiber
#

Server command (requires server.chat.others permissions)
Where to find it ?

frank haven
#

Go to your friends list and add the server account there to chat, then send commands to them

#

It's built into Grasscutter as a feature

steady fiber
#

if i understand you right

frank haven
#

Are you sure you're playing on real Grasscutter?

#

They will always show up in friends list

#

Not showing in 'add to chat' can and does happen especially when being kicked out and then letting yourself be autoreconnected

steady fiber
frank haven
#

I'm sure the implication was my build provided in #resources

steady fiber
#

I think the game is subtly telling me to give up

frank haven
#

You should always be able to send from gc console, without any other tools

steady fiber
frank haven
#

It looks like you're not connected to this Grasscutter

steady fiber
#

yes

frank haven
# steady fiber

You are hosting Grasscutter elsewhere as well? On a vm or pc that is different from this one

steady fiber
frank haven
#

Considering the issues you're facing I'd really suggest using a normal Grasscutter setup on your local machine

#

Then when you confirm you can get it working properly there, you can move it to a different pc or vm if you wish to. But locally on your normal machine is best

steady fiber
#

If I'm not mistaken I didn't install Grasscutter but just downloaded a sort of portable version or something like that

frank haven
steady fiber
#

I will not break the rules if I name the site ?

frank haven
#

A normal grasscutter setup requires no changes to config for addresses at all, you can connect directly through localhost

steady fiber
#

forum.ragezone

frank haven
#

Ah it all makes sense now

#

You're not on Grasscutter, that's why nothing for Grasscutter is working

#

You're using GIO, which is a completely separate thing

#

You won't be able to use any grasscutter commands or plugins on GIO, it gets commands through the muip server running in docker

#

The forum you got the setup from should have the information you need on using commands through muip

steady fiber
#

Can I use this server but with Grasscutter ?

frank haven
#

Grasscutter is a server all on its own, so you can't use it in conjunction with GIO

steady fiber
#

I'll try to figure out the GIO then
But if that doesn't work, are there any guides to building a server on Grasscutter so I can read them and do it all ?

frank haven
#

Yes Grasscutter is quite simple, you already have it set up you just will want to connect to port 443 instead of 2888 to access it while Grasscutter is running

steady fiber
#

I apologize for the stupid questions, but if there is an opportunity to learn, I use it to the maximum.

frank haven
#

Grasscutter is the server, so you only need Grasscutter and the game to play

#

It runs locally on your machine, not in anything else like GIO does

#

So you already have Grasscutter fully set up

steady fiber
#

Sounds good
Now i need to test everything!
Thank you all for your help in figuring this out!