Jump to content

izakt

Contributors
  • Posts

    17
  • Joined

  • Last visited

  • Days Won

    1

izakt last won the day on August 24

izakt had the most liked content!

Recent Profile Visitors

772 profile views

izakt's Achievements

  1. Linux Automatic Server Restart Guide Date: August 20th 2022 Guide Written During v0.7.0.126 Created on Linux / Centos 7 (with nano installed) Hi I thought I would dump this here. Maybe it can help someone. I am a noob. plz critic All this was done in putty.exe Summary: Below I try to explain how you can create a script that will 1) check if your game server goes offline and 2) reboot your game server automatically if it detects the server is offline. 1. Use a looping script 2. Use crontab to run a script every minute. 1. Use a looping script I wanted to create a script that would keep my game server online 24/7 without manually checking it. I have my game hosted in a Linux server with centos. It was pretty straight forward, from someone that has never done something like this. You can use the code below to create a bash script in the root folder. create a bash script: # nano autoRestartServer.sh use this to create the script: #! /usr/bin/bash while : do #Check server status curl --fail -LI <IP:PORT> -o /dev/null -w '%{http_code}\n' -s > /dev/null #if offline if [ $? -eq 7 ]; then echo "Server Offline..." #Check for existing screen if ! screen -list | grep -q "myGameServer"; then screen -d -m -S myGameServer echo "created new screen..." fi #Launch game server screen -S myGameServer -X stuff 'cd Path/To/Server/\r' screen -S myGameServer -X stuff 'LD_LIBRARY_PATH=. mono "Intersect Server.exe"\r' echo "Game server started..." echo "sleep 2m..." sleep 2m else echo "Server Online..." echo "sleep 2m..." sleep 2m fi done Above you need to edit three things. 1) Line 6 - you need to replace "<IP:PORT>" with the game server's ip and port number. Ex: "12.123.123.12:9999" 2) Line 18 - you need to replace "Path/To/Server/" to the absolute path where your game server is located. Ex: "MyGame/LiveServer/version1/" *NOTE: make sure you don't remove the "\r" at the end of line 18. 3) Line 19 - you may need to replace "Intersect Server.exe" with the actual name of your game's server. Ex: "My Game Server.exe" Then save the file with crtl+O -> [Enter] And exit the file ctrl+X Now that the script is created, then you would simply open a new screen # screen and run the script # bash autoRestartServer.sh then detach from the screen (ctrl+a -> d) and it should keep running / checking the server forever. If you need to take your server offline you can reattach to the screen running the looping script, and just kill the screen to stop the script. ctrl+a -> k -> y ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 2. Use crontab to run a script every minute unfortunately if you just use a looping script 1) its not a good method. 2) nothing is checking to make sure the looping script is still running. So you can use the code below to create a cron job which runs the almost identical bash script (in the root folder). create a bash script: # nano cronRestartServer.sh use this to create the script: #! /usr/bin/bash #Check server status curl --fail -LI <IP:PORT> -o /dev/null -w '%{http_code}\n' -s > /dev/null #if offline if [ $? -eq 7 ]; then echo "Server Offline..." #Check for existing screen if ! screen -list | grep -q "myGameServer"; then screen -d -m -S myGameServer echo "created new screen..." fi #Launch game server screen -S myGameServer -X stuff 'cd Path/To/Server/\r' screen -S myGameServer -X stuff 'LD_LIBRARY_PATH=. mono "Intersect Server.exe"\r' echo "Game server started..." else echo "Server Online..." fi Above you need to edit three things. 1) Line 4 - you need to replace "<IP:PORT>" with the game server's ip and port number. Ex: "12.123.123.12:9999" 2) Line 16 - you need to replace "Path/To/Server/" to the absolute path where your game server is located. Ex: "MyGame/LiveServer/version1/" *NOTE: make sure you don't remove the "\r" at the end of line 18. 3) Line 17 - you may need to replace "Intersect Server.exe" with the actual name of your game's server. Ex: "My Game Server.exe" Then save the file with crtl+O -> [Enter] And exit the file ctrl+X Now that the script is created, you then need to set up cron to run the script # EDITOR=nano crontab -e and you need to create a task to run the script every one minute * * * * * /bin/bash/ /root/cronRestartServer.sh Then save the file with crtl+O -> [Enter] And exit the file ctrl+X
  2. For the purpose of explaining how it works: you can literally go to your character sprite in resources -> entities and find the file (i'll call it "wizard_person.png"). Then copy it -> paste it in same folder -> rename it to "wizard_person_idle.png". Boom, you activated idle animations on the character. So now that you added the _idle file, the character idle animation will play after x seconds depending on the variable setting in your server config. HOWEVER, it is going to expect idle animations for every single item in your game that uses a sprite sheet. So now you would have to create the _idle.png file for every item. You create them in the same way you make your normal sprite sheets ... you make it match the "wizard_person_idle.png" animation. You can do the same for with _attack.png I am looking for all the possible variables that you can use this for? If anyone knows it... So far I know there is _idle _attack _shoot _weapon _cast i guess you can make custom animations / items types too but idk lol EDIT here is some video i find too that kinda visualizes how it works. Embedded Video Link
  3. I am actually looking to do this myself soon. I have played around a bit and I think you can just make the sprite sheet bigger. For example the size of my character is 32x48. The whole sheet is 128x192. Make a sheet 192x288. (tiles 48x72) that would give you an extra 12px above and below the character sprite to work with the character sheet that is 128x192 will sit in the middle-centered of the title sheet 192x288. (if that gives you some visual on where to place the title image) actually I just checked my own stuff, when I make sheets that are much larger than the character I have been using 64x96 tiles (sheet size 256x384)
  4. Our Alpha v1.08 update was recently released! Come check us out! Website: https://forgottenlands.online/en/ Update details: https://forgottenlands.online/en/news/12-alpha-v1.08 WE ARE LOOKING FOR TESTERS -> EARN REWARDS FOR PARTICIPATION! Join out Discord today -> https://discord.gg/gPuXdbb3jX Update notes:
  5. Join our Alpha v1.07 update! We have made lots of improvements to the game! Please check it out! https://forgottenlands.online/en/ Or check the official details here: https://forgottenlands.online/en/news/10-alpha-v1.07 *notice: the game was previously called MU Pixel - ORPG and has since been rebranded as Forgotten Lands: Online.
  6. I experience this issue a lot in Intersect Engine 0.7.0.126-beta-prerelease Full In the editor, sometimes the screen rolls back to a prior state randomly. Its hard to notice it happen even but I have seen it rollback while I was looking at the screen. It flashed quick and everything went back to prior state. What is weird about it is that when it does that, if it rolls back you can move to another map square without make a change and it won't ask you if you want to save the map. Then when you go back to it, the map didn't actually roll back. However, if you edit the map at all after it rolls back it will ask you to save. You have to click no otherwise it saves the roll back. Kind of confusing. It if rolls back, just switch squares before you make another edit. Then it will not save the roll back. I know sometimes its almost impossible to tell (for example if event script just rolls back) but that is what I have been doing. It really sucks sometimes when I make an event, save, do some other stuff, go back and the event is blank.
  7. Hi, we are currently in an open Alpha phase still. You should try it out and let us know your feedback! We are not a private server and are creating everything from scratch. It is simply inspired by the MU Online game!
  8. I appreciate the feedback. I understand and will be removing any associated IP with time and its mostly just placeholders for now until I can develop better artwork and things. Surely we won't enter beta until these things are replaced. Also, there is big notices about the "cash shop" and warnings that we are in Alpha stage and that data may or may not be wiped ultimately so surely I am not attempting to be sketchy about it but I do understand what you mean. Thanks again for your reply.
  9. Welcome to Forgotten Lands: Online! Forgotten Lands: Online is a 2D MMORPG which tells a fictional tale of a lost utopia. πŸ“Œ Game Links πŸ“Œ Website https://forgottenlands.online/en/ Download https://forgottenlands.online/en/download Wikis https://forgottenlands.online/en/page/all-wiki-pages- πŸ”— Social Links πŸ”— πŸ‘‰ Discord πŸ‘‰ Youtube πŸ‘‰ Facebook πŸ‘‰ itch.io πŸ‘‰ Indie DB πŸ“‹ Game Status πŸ“‹ Current State: Open Alpha πŸ‘‰ Servers are online 24/7! πŸ‘‰ If the server is ever offline, please let us know! πŸ””Game Highlights πŸ”” Game Engine: Intersect Engine (v0.7). πŸ‘‰ 2D MMORPG! (massive multiplayerβš”οΈ πŸ‘‰ Cloud based game server! (24/7 uptime!) πŸ‘‰ In-game auto-updater! (no-click game updates!) πŸ‘‰ Tiny game installer! (9MB download!) πŸ‘‰ No data wipes! (Play now & play later!βœ… πŸ‘‰ Official Steam launch plans! βš”οΈ Desired Gameplay Features βš”οΈ πŸ‘‰ Private monster lair instances! πŸ‘‰ Open world boss monster respawns! ο»Ώ πŸ‘‰ Periodic server instances! πŸ‘‰ Guild & Party systems! πŸ‘‰ Lots of quests to complete! ο»Ώ πŸ‘‰ PVP combat & events! πŸ‘‰ Competitive multiplayer PVM events. ο»Ώ πŸ‘‰ Thousands of in-game items! πŸ‘‰ Website leaderboards & rankings! πŸ‘‰ VIP Item Shop - earn zCredits for donations! πŸ‘‰ Account management via website! πŸ“– Game Lore... πŸ“– There once was a lost world. A story of monsters and humans. They lived among each other for centuries. But something was happening. The world was changing. The world was dying. There were three main continents in this realm: Lemuria, Mu, and Atlantis. Mu was at the center of these continents. It flourished from fertile soil and natural resources, inevitably leading to the uprising of the wealthy city Scepia. Scepia is the largest city in all of the continents. Lemuria lies just east of Mu. Its a continent of natural beauty. From a dense forest, to a vast desert, Lemuria is an land of wilds. There are very few, very small towns that exist in Lemuria. Far to the west lies Atlantis. It is set out in the ocean much farther away from the other continents. There is mysterious activity that can be seen going on in Atlantis but no one is quite sure what is happening there. This world was abundant with life and sustainability. However, it all came to an unfortunate halt after an evil sorcerer managed to dupe a high ranking knight into opening a dimensional rift. A cloud of smog protruded from this rift and drifted over the world. The world became dark, the monsters became cursed, and the world began to die. πŸ§‘ Staff... πŸ§‘ Izak Thompson izakt - Owner - Lead Developer - Lead Publisher - Lead Artist - Product Specialist πŸ“š Developer's Note... πŸ“š Thank you for checking my game out! I have worked really hard on this game to bring a genuine MMORPG experience to the 2D world. There are many 2D MMORPGs out there, but I feel like they lack a lot of the main concepts of original MMORPGs. I try to bring back original MMORPG concepts with the fun 2D classic art style. My ultimate goal is to launch this game on steam! Be sure to join the Discord to interact with the developers and publishers directly. Cheers! Media...
  10. If anyone else run into this error, it was simple issue. I share here incase anyone else have issue here. If you try to update 2.2 version CMS with this Cache Update Patch (https://github.com/Thomasfds/Intersect-CMS-Cache-Update)... At step 3 on github page "After line 11 add cache_json: '%kernel.project_dir%/public/cache/'" You must add this code into line 11, not on line 12. it should be similar to: parameters: images_articles: '%kernel.project_dir%/public/assets/general/news' images_items: '%kernel.project_dir%/public/assets/general/items' dedipass.public_key: '%env(DEDIPASS_PUBLIC_KEY)%' dedipass.private_key: '%env(DEDIPASS_PRIVATE_KEY)%' cache_json: '%kernel.project_dir%/public/cache/' services: it needs to be with the parameters and not on the next line. Cheers! Thanks again @XFallSeane for help resolving this <3
  11. I just now use your new files and same issue happen. It break the whole site (every page) there is also no log file that appears after this EDIT: I do steps: 1. update files 2. update services.yaml 3. clear cache -> site broken
  12. yes sir and I used the 2.2 branch files
  13. Thank you for the thread. I just needed to read it to figure out how I could create a Daily Reward System / Claim Items After x Time System. Global Variable (int): "Server Timestamp" = 0 Player Variable (int): "Next Claimable Timestamp" = 0 Autorun -> "Server Timestamp" = Server Time (ms) If player claims daily reward -> "Next Claimable Timestamp" = "Server Timestamp" "Next Claimable Timestamp" + 86,400,000 If "Next Claimable Timestamp" is less than "Server Timestamp" -> player can claim reward again
  14. Hi, I tried to do this and it broke the whole site. I got 500 Internal Server Error on every page after following steps 1, 2, 3, 4. (Yes, I used 2.2 branch) Anyway, I was able to restore the site back. Not sure what went wrong.
×
×
  • Create New...