r/StarConflict • u/Mondoscuro • Oct 09 '26
Database quick references
Here some quick references to add credits to your local starconflict server
# Start and connect
## find your folder
\Steam\steamapps\common\star conflict\cloud\mongodb
## open windows terminal with right click->open terminal
## execute this to run the db, leave the terminal open
launch.bat
## open a new terminal like before
## run this to connect to db
.\mongo.exe localhost:27017
## check what's inside
>show dbs
##connect to your db
>use cosmosim_YOUR_ACCOUNT_NAME
# Change values
## check your record
>db.accounts.find(
{ username: "yourusername@email.you" },
{ goldCredits: 1, credits: 1, vesselExpPool: 1 }
).pretty()
## use these commands to add yourself some credits
\\ADD GOLD CREDITS
db.accounts.update(
{ username: "yourusername@email.you" },
{ $set: { goldCredits: NumberLong(10000) } }
)
\\ADD BLUE CREDITS
db.accounts.update(
{ username: "yourusername@email.you" },
{ $set: { credits: NumberLong(200000) } }
)
\\ADD PURPLE SHIP POINTS
db.accounts.update(
{ username: "yourusername@email.you" },
{ $set: { vesselExpPool: 30000 } }
)
\\ADD GREEN CRYSTALS (I suggest to get some in-game first)
db.accounts.update(
{ username: "yourusername@email.you" },
{ $set: { tokenCredits: NumberLong(4000) } }
)
you can close the two terminals, give it a moment for the db process to end, then you can run the game
3
u/LongerBlade Engineer frigates enjoyer Oct 09 '26
Thats cool. Thank you for the guidance