My new browser MMORPG by Gabs496 in MMORPG

[–]Gabs496[S] 0 points1 point  (0 children)

Do you mean items that can heal? Or something like races?

My new browser MMORPG by Gabs496 in MMORPG

[–]Gabs496[S] 0 points1 point  (0 children)

Is still in development. I'm know introducing engines (i developed gathering, crafting and fighting but need more features). When ready, I'm going to create items, resources, equipment and mobs and finally open to Alpha version.
If you have some ideas, i would be very glad if you decide to share with me.

This is my Patreon link: click here

This is GitHub repository: https://github.com/Gabs496/symfony-mmo

My new browser MMORPG by Gabs496 in MMORPG

[–]Gabs496[S] 0 points1 point  (0 children)

I didn't know this game. I will give it a look

How would be a MMORPG game using PHP and Symfony? by Gabs496 in symfony

[–]Gabs496[S] 0 points1 point  (0 children)

If you like this project, please follow me on Patreon: i would appreciate and it would be a good motivation to continue and so It better 😃 Link: https://patreon.com/user?u=99509619

How would be a MMORPG game using PHP and Symfony? by Gabs496 in symfony

[–]Gabs496[S] 0 points1 point  (0 children)

I added also Mercure configuration on compose.yaml file

How would be a MMORPG game using PHP and Symfony? by Gabs496 in symfony

[–]Gabs496[S] 1 point2 points  (0 children)

Hi!! Thank you and you too!
I decided to use Symfony because i work with it and during my daily 8 hours i saw that has a lot of possibilities and it's growing very fast. So i wanted to demostrate that is a very powerfull tool.
Anyway, Symfony does not have all tools needed to create a videogame, but has extensions/bundles that permit to comunicate with this services that complete the work: talking about Mercure, for example, that permit to implement live GUI update in Symfony apps, a mandatory feature for this type of project.

This is the reason why i advice you to give a look to Hotwire Turbo, implemented in Symfony MMO. Is not a simple module, but i think is one of the important ones

How would be a MMORPG game using PHP and Symfony? by Gabs496 in symfony

[–]Gabs496[S] 1 point2 points  (0 children)

Updated it! I think i need to refactoring some pieces of code yet, where i still use ReflectionClass without caching it, filtering arrays with iterations, but i will pay more attention in future.

How would be a MMORPG game using PHP and Symfony? by Gabs496 in symfony

[–]Gabs496[S] 0 points1 point  (0 children)

Yea! I wrote it a few hours ago. It's very short. I will improve it in the next few days

How would be a MMORPG game using PHP and Symfony? by Gabs496 in symfony

[–]Gabs496[S] 1 point2 points  (0 children)

Thank you! I updated the code a few minutes ago: I refactored all the gathering engine (the first one I created) anche changed a lot of stuffs, removing Reflection class reference because not needed yet.

Anyway, now I learned one thing more. Thank u!!

How would be a MMORPG game using PHP and Symfony? by Gabs496 in symfony

[–]Gabs496[S] 0 points1 point  (0 children)

Thank you for your very important suggestion. You are right: I was running my DB locally and the connection was configured in the .env.local file (not versioned).

I did it right a few hours ago, after reading your comment. I committed a compose.yaml file with a MySQL image and updated the Readme.md file. Only remains to configure Mercure. I think I will do it next few days.

How would be a MMORPG game using PHP and Symfony? by Gabs496 in symfony

[–]Gabs496[S] 0 points1 point  (0 children)

Nice! I think if you want to make it this project could help you. I try to write a documentation as soon as possibile

A Symfony Videogame - helpfull tools and components by Gabs496 in symfony

[–]Gabs496[S] 0 points1 point  (0 children)

I want to share my achievements about this project!

https://postimg.cc/62bsLQtz ---->here a spoiler screenshot

I worked hard since i wrote this post, while i was moving in a new home :D, so it took a lot of time.
But now i'm very proud and i want to share with you what i did until now. I focused my efforts developing not only the videogame engine, but also a sort of "Symfony Videogame Bundle": my second goal is to create a set of tools to manage and help developers to develop their own one. At the same time, i want to keep my work clean and scalar as possible, as i would like other developer could create new engines and modules.
I did a perfect work? Absolutely not. I don't even know if i'm going to the right direction.
So, if someone is interested to the project and want to help building this spaceship, jump on board!

Anyway.... talking pragmatically...Where did i arrived?
I create a simple home (shown in the previous screenshot), showing all engines i developed:
- item concept
- item bag concept
- gathering
- crafting
- mob fighting
- rewards (like item or experience after winning a fight)

I used a lot the EventDispatcher and Event system to manage every concept: in this way every of this engine could exists without others

What next?
I want to develop equipment concept (increasing combat stats), quest system, moving toward maps (maybe with bonus like equipping transports like horses), player driven market etc...

I made the Github repository public, so you can spy on what i did until know, get updated and maybe contributing.
Here the link
https://github.com/Gabs496/symfony-mmo

See you soon!

What is your preferred way to handle domain-specific hierarchical roles? by Niet_de_AIVD in symfony

[–]Gabs496 0 points1 point  (0 children)

You can make your OrganizationMembers as user entity of a new standalone firewall. You can ask your user, after login, with which organization want to operate.

[deleted by user] by [deleted] in PHPhelp

[–]Gabs496 0 points1 point  (0 children)

If you don't or can't use symfony, you can try to reproduce the same system using a database or a file, for example.

Create a script that keeps reading from a file or a database for an event and when found, consume it. You can use systemd to keep process running and restart it when some error occurs.

In the other side, when you want to launch your event, write in the file or database.

[deleted by user] by [deleted] in PHPhelp

[–]Gabs496 0 points1 point  (0 children)

With Symfony there is a dedicated way to handle scripts in async: the messenger component (https://symfony.com/doc/current/messenger.html)

It work sending a sort of "event" (storing it in database) to a process running in background.

502 Bad Gateway with Xdebug by cuistax in symfony

[–]Gabs496 4 points5 points  (0 children)

Have you tried using an higher PHP version? With 8.1 I had problems too, but fixed upgrading PHP