Jump to content

Nimbus

Contributors
  • Posts

    31
  • Joined

  • Last visited

Everything posted by Nimbus

  1. Looks clean man! Definitely going to check it out xD
  2. My Discord is : Nimbo#9162
  3. Hello There! I have been developing BitScape Crusade for the past 3 years in my spare time. I have done everything through the Intersect Engine and have upgraded verions over the years (Kudos to the Intersect team!). The game is nearing the stage for public launch and I really want to have some things in place beforehand. I recently paid for hosting on HostKoala since I saw JC and some other devs recommend it (Pricing and CPanel is hard to beat from what I've seen). Up until this stage I have hosted the game server and everything else locally on one of my personal pcs, and I am ready to use HostKoala to set up some other things but I don't have the know how. Here are the things I need done on HostKoala: -CMS-API Website linked to Game DB's -Auto Updater I just need someone to help me do the initial setup and show me how to manage it correctly and I can make all the changes needed visually etc. ***I tried for 2 days setting up CMS on my personal PC with XAMPP and Laragon and kept getting different errors. That is why I have decided to go the HostKoala route ________________________________________________________________________________________________ Additionally I am also looking to have some other systems implemented into BitScape: -Mini Map -Guilds -Player Housing If you are experienced with any of these things and are willing to help and get paid for it please contact me! (Insane Pricing will be ignored - Let's be realistic xD) Thanks so much!! -Nimbo
  4. Getting this error now. Fatal error: Uncaught Error: Class 'App\Preferences' not found in C:\laragon\www\BSC\application\App\ContainerFactory.php:23 Stack trace: #0 C:\laragon\www\BSC\public\index.php(40): App\ContainerFactory::create('C:\\laragon\\www\\...') #1 {main} thrown in C:\laragon\www\BSC\application\App\ContainerFactory.php on line 23
  5. I think I'm getting somewhere xD
  6. I had it done in XAMPP but I can't figure out how to import databases on Laragon.
  7. preferences.php <?php declare(strict_types=1); namespace App; /** * This class contains the preferences for the application. * * @package App */ class Preferences { /** * @var string */ private $rootPath; private $themeName; private $baseURL; private $apiUsername; private $apiPassword; private $apiServer; private $apiToken; private $cmsSettings; private $dbIp = "127.0.0.1"; private $dbUser = "root"; private $dbPassword = ""; private $dbPort = "5400"; private $dbName = "BSC"; /** * Preferences constructor. * * @param string $rootPath */ public function __construct(string $rootPath) { $this->rootPath = $rootPath; } /** * @return string */ public function getRootPath(): string { return $this->rootPath; } /** * @return string */ public function getThemeName(): string { return $this->themeName; } /** * @return string */ public function setThemeName($themeName) { $this->themeName = $themeName; } /** * @return string */ public function getDbIp(): string { return $this->dbIp; } /** * @return string */ public function getDbUser(): string { return $this->dbUser; } /** * @return string */ public function getDbPassword(): string { return $this->dbPassword; } /** * @return string */ public function getDbPort(): string { return $this->dbPort; } /** * @return string */ public function getDbName(): string { return $this->dbName; } /* Config API */ /** * @return string */ public function getApiUser(): string { return $this->apiUsername; } public function setApiUser($username) { $this->apiUsername = $username; } /** * @return string */ public function getApiPassword(): string { return $this->apiPassword; } public function setApiPassword($password) { $this->apiPassword = $password; } /** * @return string */ public function getApiServer(): string { return $this->apiServer; } public function setApiServer($server) { $this->apiServer = $server; } /** * @return string */ public function getApiToken() { return $this->apiToken; } public function setApiToken($token) { $this->apiToken = $token; } /** * @return array */ public function getCmsSettings() { return $this->cmsSettings; } public function setCmsSettings($settings) { $this->cmsSettings = $settings; } public function getApiData() { // API login $postData = array( 'grant_type' => "password", 'username' => $this->getApiUser(), 'password' => hash('sha256', $this->getApiPassword()) ); return $postData; } /** * @return string */ public function getBaseURL(): string { return $this->baseURL; } public function setBaseURL($server) { $this->baseURL = $server; } /* Function API */ public function APIcall_POST($server, $postData, $access_token, $calltype) { $ch = curl_init('http://' . $server . $calltype); curl_setopt_array($ch, array( CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => array( 'authorization:Bearer ' . $access_token, // "authorization:Bearer", et non pas "authorization: Bearer" 'Content-Type:application/json' // "Content-Type:application/json", et non pas "Content-Type: application/json" ) , CURLOPT_POSTFIELDS => json_encode($postData) )); $response = curl_exec($ch); if ($response === false) { return (curl_error($ch)); } $responseData = json_decode($response, true); return $responseData; } // Permet de récupérer des données depuis la BDD via l'API : liste des joueurs, etc public function APIcall_GET($server, $access_token, $calltype) { $ch = curl_init('http://' . $server . $calltype); curl_setopt_array($ch, array( CURLOPT_HTTPGET => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_HTTPHEADER => array( 'authorization:Bearer ' . $access_token, // "authorization:Bearer", et non pas "authorization: Bearer" 'Content-Type:application/json' // "Content-Type:application/json", et non pas "Content-Type: application/json" ) , )); $response = curl_exec($ch); if ($response === false) { return (curl_error($ch)); } $responseData = json_decode($response, true); return $responseData; }
  8. Ok I got that figured out and received the same error as in XAMPP Fatal error: Uncaught PDOException: Could not connect to database (test_rpg). in C:\laragon\www\BSC\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php:440 Stack trace: #0 C:\laragon\www\BSC\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php(161): RedBeanPHP\Driver\RPDO->connect() #1 C:\laragon\www\BSC\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php(464): RedBeanPHP\Driver\RPDO->runQuery('SELECT * FROM c...', Array) #2 C:\laragon\www\BSC\vendor\gabordemooij\redbean\RedBeanPHP\Adapter\DBAdapter.php(118): RedBeanPHP\Driver\RPDO->GetAll('SELECT * FROM c...', Array) #3 C:\laragon\www\BSC\vendor\gabordemooij\redbean\RedBeanPHP\Facade.php(158): RedBeanPHP\Adapter\DBAdapter->get('SELECT * FROM c...', Array) #4 C:\laragon\www\BSC\vendor\gabordemooij\redbean\RedBeanPHP\Facade.php(1226): RedBeanPHP\Facade::query('get', 'SELECT * FROM c...', Array) #5 C:\laragon\www\BSC\public\index.php(63): RedBeanPHP\Facade::getAll('SELECT * FROM c...') #6 {main} thrown in C:\laragon\www\BSC\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php on line 440
  9. Gotcha! I downloaded Laragon but I'm not sure entirely what needs to be done. It's setup is quite different than XAMPP and I used that because there was a english guide that I could follow easily.
  10. What do you mean by this?
  11. Yes I did
  12. It auto brings up dashboard now everytime
  13. Hello xD I believe so. I am doing everything locally first to get it working.
  14. I am getting the following error when trying to access the url after setup: Fatal error: Uncaught PDOException: Could not connect to database (BSC). in C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php:440 Stack trace: #0 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php(161): RedBeanPHP\Driver\RPDO->connect() #1 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php(464): RedBeanPHP\Driver\RPDO->runQuery('SELECT * FROM c...', Array) #2 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Adapter\DBAdapter.php(118): RedBeanPHP\Driver\RPDO->GetAll('SELECT * FROM c...', Array) #3 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Facade.php(158): RedBeanPHP\Adapter\DBAdapter->get('SELECT * FROM c...', Array) #4 C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Facade.php(1226): RedBeanPHP\Facade::query('get', 'SELECT * FROM c...', Array) #5 C:\xampp\htdocs\BSC-CMS\public\index.php(63): RedBeanPHP\Facade::getAll('SELECT * FROM c...') #6 {main} thrown in C:\xampp\htdocs\BSC-CMS\vendor\gabordemooij\redbean\RedBeanPHP\Driver\RPDO.php on line 440 Any help would be greatly appreciated!
  15. I can't get this to work since upgrading to the most recent build =/. Used to work back on 6.1.xx
  16. Yeah I will just leave that aspect out for now xD. I just like having sound ques for things. This would prevent having to constantly look at the tile you just looted, but its not a huge deal.
  17. Hello! How would I go about adding an event to play a sound on every item that is looted? So the player can hear it enter their bag. I've looked into the triggering and can't quite figure it out. I have tons of other sounds that play with different events but this has me stuck. Thanks so much, -Nimbo
  18. Perfect thank you!!
  19. I will try to see if I can.
  20. Beta 6 Build 188. Only source changes was adding a patch for Directional Dancing that JC posted. Rest of the changes are visual and client/editor side. TY for the fast response!
  21. Everything was working fine and then a couple days back players started having issues in account creation. This is the error that I'm getting server side: -------------------------------------------------------------------------------- 2021-03-25 16:27:09.066 [Error] Client Packet Error! [Packet: CreateCharacterPacket | User: cryptofighter | Player: | IP 219.100.37.236] 2021-03-25 16:27:09.066 [Error] Message: Object reference not set to an instance of an object. Stack: at lambda_method(Closure , ValueBuffer ) at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source) at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ResultEnumerable`1.GetEnumerator() at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext() at System.Linq.Enumerable.First[TSource](IEnumerable`1 source) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass15_1`1.<CompileQueryCore>b__0(QueryContext qc) at Intersect.Server.Database.DbInterface.CharacterNameInUse(String name) at Intersect.Server.Networking.PacketHandler.HandlePacket(Client client, Player player, CreateCharacterPacket packet) at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid4[T0,T1,T2,T3](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) at Intersect.Server.Networking.PacketHandler.HandlePacket(IConnection connection, IPacket packet) -------------------------------------------------------------------------------- 2021-03-25 16:45:32.666 [Error] Client Packet Error! [Packet: CreateCharacterPacket | User: cryptofighter | Player: | IP 219.100.37.236] -------------------------------------------------------------------------------- 2021-03-25 16:45:32.667 [Error] {"DataKeys":0,"MessageLength":53,"StackTraceLength":1043,"InnerException":false,"Source":"Anonymously Hosted DynamicMethods Assembly","TargetSite":"lambda_method","TargetSiteDeclaringType":null,"Type":"System.NullReferenceException"} -------------------------------------------------------------------------------- 2021-03-25 16:45:32.667 [Error] Client Packet Error! [Packet: CreateCharacterPacket | User: cryptofighter | Player: | IP 219.100.37.236] 2021-03-25 16:45:32.667 [Error] Message: Object reference not set to an instance of an object. Stack: at lambda_method(Closure , ValueBuffer ) at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source) at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ResultEnumerable`1.GetEnumerator() at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor`1.EnumeratorExceptionInterceptor.MoveNext() at System.Linq.Enumerable.First[TSource](IEnumerable`1 source) at Microsoft.EntityFrameworkCore.Query.Internal.QueryCompiler.<>c__DisplayClass15_1`1.<CompileQueryCore>b__0(QueryContext qc) at Intersect.Server.Database.DbInterface.CharacterNameInUse(String name) at Intersect.Server.Networking.PacketHandler.HandlePacket(Client client, Player player, CreateCharacterPacket packet) at System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid4[T0,T1,T2,T3](CallSite site, T0 arg0, T1 arg1, T2 arg2, T3 arg3) at Intersect.Server.Networking.PacketHandler.HandlePacket(IConnection connection, IPacket packet) -------------------------------------------------------------------------------- PLEASE LET ME KNOW IF YOU CAN HELP. Thanks! -Nimbo
  22. Hello there! It's been awhile since working on my project and I finally got some spare time to do so. 6 months ago my client and server ran just fine with my custom build but now after months of being away (no updates to anything in the code etc) This is the error log: 20-12-31 15:33:23.639 [Error] Message: Could not resolve host Stack: at Lidgren.Network.NetPeer.GetNetEndPoint(String host, Int32 port) in C:\Users\JC Snider\Documents\GitHub\lidgren-network-gen3\Lidgren.Network\NetPeer.cs:line 278 at Lidgren.Network.NetPeer.Connect(String host, Int32 port, NetOutgoingMessage hailMessage) in C:\Users\JC Snider\Documents\GitHub\lidgren-network-gen3\Lidgren.Network\NetPeer.cs:line 295 at Intersect.Network.LidgrenInterface.Connect() in C:\Users\delas\Desktop\Intersect Engine\Intersect-Engine\Intersect.Network\LidgrenInterface.cs:line 206 at Intersect.Network.LidgrenInterface.Start() in C:\Users\delas\Desktop\Intersect Engine\Intersect-Engine\Intersect.Network\LidgrenInterface.cs:line 169 at Intersect.Network.AbstractNetwork.<>c.<StartInterfaces>b__50_0(INetworkLayerInterface networkLayerInterface) in C:\Users\delas\Desktop\Intersect Engine\Intersect-Engine\Intersect (Core)\Network\AbstractNetwork.cs:line 268 at System.Collections.Generic.List`1.ForEach(Action`1 action) at Intersect.Network.AbstractNetwork.StartInterfaces() in C:\Users\delas\Desktop\Intersect Engine\Intersect-Engine\Intersect (Core)\Network\AbstractNetwork.cs:line 268 at Intersect.Network.ClientNetwork.Connect() in C:\Users\delas\Desktop\Intersect Engine\Intersect-Engine\Intersect.Network\ClientNetwork.cs:line 78 at Intersect.Client.MonoGame.Network.MonoSocket.Connect(String host, Int32 port) at Intersect.Client.Networking.Network.TryConnect() at Intersect.Client.Networking.Network.InitNetwork() at Intersect.Client.Core.Main.Start() at Intersect.Client.MonoGame.IntersectGame.Initialize() at Microsoft.Xna.Framework.Game.DoInitialize() at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) Any help on this would be greatly appreciated!! Thank you xD -Nimbo
  23. Very nice man. Good job!
×
×
  • Create New...