Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- Reldens - v4.0.0-beta.38 #254

Merged
merged 317 commits into from
Nov 19, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
317 commits
Select commit Hold shift + click to select a range
ee5d660
- Reldens - v4.0.0 - Fix migration scripts.
damian-pastorini Sep 4, 2024
0d2ccda
- Reldens - v4.0.0 - Fix missing users table field. - Improved instal…
damian-pastorini Sep 4, 2024
fcd8c0a
- Reldens - v4.0.0 - Update packages.
damian-pastorini Sep 4, 2024
3307455
- Reldens - v4.0.0 - Updated browsers list.
damian-pastorini Sep 4, 2024
3eb6e96
- Reldens - v4.0.0 - Update packages.
damian-pastorini Sep 5, 2024
7f6fe1f
- Reldens - v4.0.0 - Fix env file template to enclose variables in do…
damian-pastorini Sep 5, 2024
c2c75c7
- Reldens - v4.0.0 - Fix chat messages snippets for properties and va…
damian-pastorini Sep 5, 2024
fbc7317
- Reldens - v4.0.0 - Fix modifiers callbacks.
damian-pastorini Sep 5, 2024
b207c15
- Reldens - v4.0.0 - Fix modifiers callbacks.
damian-pastorini Sep 5, 2024
a0522ca
- Reldens - v4.0.0 - Fix player chat messages callbacks for actions.
damian-pastorini Sep 5, 2024
b697f17
- Reldens - v4.0.0 - Fix plugin on player death.
damian-pastorini Sep 5, 2024
4a2cb9a
- Reldens - v4.0.0 - Updated Phaser.
damian-pastorini Sep 5, 2024
1e789a9
- Reldens - v4.0.0 - CR minor fix.
damian-pastorini Sep 5, 2024
a44377d
- Reldens - v4.0.0 - Included trust proxy configuration.
damian-pastorini Sep 6, 2024
64e07bc
- Reldens - v4.0.0 - Removed zero from proxy configuration in env file.
damian-pastorini Sep 6, 2024
ca0669e
- Reldens - v4.0.0 - Create App server after process the dotenv.
damian-pastorini Sep 6, 2024
142fb0f
- Reldens - v4.0.0 - Fix AppServerFactory methods calls.
damian-pastorini Sep 6, 2024
c4ed4e3
- Reldens - v4.0.0 - Fix rate limiter params.
damian-pastorini Sep 6, 2024
4b14566
- Reldens - v4.0.0 - Fix minimap position by configuration.
damian-pastorini Sep 6, 2024
2783311
- Reldens - v4.0.0 - Include note and remove pve log.
damian-pastorini Sep 12, 2024
092f646
- Reldens - v4.0.0 - Transform mapData parameters into numbers for im…
damian-pastorini Sep 12, 2024
f2332b8
- Reldens - v4.0.0 - Improve logs.
damian-pastorini Sep 12, 2024
9fd8c69
- Reldens - v4.0.0 - Transform map data into numbers for import and i…
damian-pastorini Sep 12, 2024
c5b2891
- Reldens - v4.0.0 - Improved logs for respawn process.
damian-pastorini Sep 12, 2024
a32dc20
- Reldens - v4.0.0 - Implemented loadRoomBy error handling and improv…
damian-pastorini Sep 12, 2024
a4c3137
- Reldens - v4.0.0 - Implemented world contents creation layers valid…
damian-pastorini Sep 12, 2024
5714819
- Reldens - v4.0.0 - Improved logs on scores.
damian-pastorini Sep 12, 2024
a7714e5
- Reldens - v4.0.0 - Improved conditions.
damian-pastorini Sep 12, 2024
a5946cb
- Reldens - v4.0.0 - Updated sample data with maps for bots and bench…
damian-pastorini Sep 12, 2024
ff15501
- Reldens - v4.0.0 - Include missing parameters on admin template for…
damian-pastorini Sep 12, 2024
d444e0a
- Reldens - v4.0.0 - Include include new maps for bots on default tem…
damian-pastorini Sep 12, 2024
ac64339
- Reldens - v4.0.0 - Updated packages.
damian-pastorini Sep 12, 2024
ab1ab0f
- Reldens - v4.0.0 - Updated browserlist.
damian-pastorini Sep 12, 2024
0f13ddd
- Reldens - v4.0.0 - Improve logs for missing attaker player on score…
damian-pastorini Sep 12, 2024
a613c4b
- Reldens - v4.0.0 - Fix missing comma in migrations.
damian-pastorini Sep 13, 2024
34e55b7
- Reldens - v4.0.0 - Fix missing commas in migrations.
damian-pastorini Sep 13, 2024
32d9e97
- Reldens - v4.0.0 - Fix migrations sample data.
damian-pastorini Sep 13, 2024
e070ae6
- Reldens - v4.0.0 - Include trusted proxy configuration on installer.
damian-pastorini Sep 15, 2024
17fe87f
- Reldens - v4.0.0 - Include join rooms in random place feature. - Im…
damian-pastorini Sep 18, 2024
2a2da59
- Reldens - v4.0.0 - Improve respawn logs.
damian-pastorini Sep 18, 2024
8ab6099
- Reldens - v4.0.0 - Update migrations.
damian-pastorini Sep 18, 2024
b204679
- Reldens - v4.0.0 - Improve Rooms logs.
damian-pastorini Sep 18, 2024
5f2b80a
- Reldens - v4.0.0 - Creating room await join fix.
damian-pastorini Sep 23, 2024
b442a65
- Reldens - v4.0.0 - Fix alertReload return.
damian-pastorini Sep 23, 2024
5e399c0
- Reldens - v4.0.0 - Fix player death subscriber return.
damian-pastorini Sep 23, 2024
5169782
- Reldens - v4.0.0 - Fix typo.
damian-pastorini Sep 23, 2024
19ea325
- Reldens - v4.0.0 - Fix reset autoMoving value to false.
damian-pastorini Sep 23, 2024
84db1c8
- Reldens - v4.0.0 - Include nodes validation before getNode.
damian-pastorini Sep 23, 2024
456b227
- Reldens - v4.0.0 - Include attacker is player validation.
damian-pastorini Sep 23, 2024
9236faf
- Reldens - v4.0.0 - Fix quantity in respawn log.
damian-pastorini Sep 23, 2024
24273d8
- Reldens - v4.0.0 - Include pathfinder test area on bots map.
damian-pastorini Sep 23, 2024
1060c59
- Reldens - v4.0.0 - Improved logs on physical bodies.
damian-pastorini Sep 23, 2024
ce53ded
- Reldens - v4.0.0 - Fix player state save params on scene change.
damian-pastorini Sep 25, 2024
844e348
- Reldens - v4.0.0 - Replace log by alertReload on RoomEvents scene e…
damian-pastorini Sep 25, 2024
3d4d2d6
- Reldens - v4.0.0 - Fix room objects collisions by replacing hardcod…
damian-pastorini Sep 25, 2024
95eb9f7
- Reldens - v4.0.0 - Include missing collision layer. - Fix original …
damian-pastorini Sep 25, 2024
a90f27a
- Reldens - v4.0.0 - Update items package.
damian-pastorini Sep 25, 2024
c46f118
- Reldens - v4.0.0 - Include automove reset retries properties and fi…
damian-pastorini Sep 25, 2024
fa3b1ea
- Reldens - v4.0.0 - Fix pathfinder for narrow paths.
damian-pastorini Sep 25, 2024
0eede1c
- Reldens - v4.0.0 - Changed world walls, objects and layers with res…
damian-pastorini Sep 25, 2024
ddfd847
- Reldens - v4.0.0 - Improve bots room validation.
damian-pastorini Sep 25, 2024
f922cd9
- Reldens - v4.0.0 - CR fix on bots file.
damian-pastorini Sep 25, 2024
a473716
- Reldens - v4.0.0 - Implemented Enemies interaction area.
damian-pastorini Sep 26, 2024
77e6260
- Reldens - v4.0.0 - Disabled unnecesary logs in bots and chat-ui.
damian-pastorini Sep 26, 2024
cb45ee1
- Reldens - v4.0.0 - Improve conditions and logs for objects and PVE.
damian-pastorini Sep 27, 2024
5eec7d3
- Reldens - v4.0.0 - Improve conditions and logs for battle and PVE.
damian-pastorini Sep 27, 2024
ff3b084
- Reldens - v4.0.0 - Removed alert reload and include check.
damian-pastorini Sep 27, 2024
f0fb778
- Reldens - v4.0.0 - Improved player creation error log.
damian-pastorini Oct 2, 2024
8976098
- Reldens - v4.0.0 - Fixed position and speed updates down to 2 decim…
damian-pastorini Oct 2, 2024
18eb9d7
- Reldens - v4.0.0 - Included debug log on play sprite audio.
damian-pastorini Oct 2, 2024
81820fb
- Reldens - v4.0.0 - Replace conditions by early returns.
damian-pastorini Oct 2, 2024
2e3a4b9
- Reldens - v4.0.0 - Fix and improved player creation errors messages…
damian-pastorini Oct 2, 2024
b76a0c5
- Reldens - v4.0.0 - Include player updates logs in RoomEvents.
damian-pastorini Oct 2, 2024
47e0d56
- Reldens - v4.0.0 - Fixed lifebar visibility on player death.
damian-pastorini Oct 2, 2024
7ed2142
- Reldens - v4.0.0 - Removed decimals from position and speed updates.
damian-pastorini Oct 2, 2024
b7e2c6b
- Reldens - v4.0.0 - Replaced PlayerSchema.inState by proper PlayerSc…
damian-pastorini Oct 2, 2024
168033e
- Reldens - v4.0.0 - Updated packages.
damian-pastorini Oct 6, 2024
8ebe8b9
- Reldens - v4.0.0 - Include time on bot log.
damian-pastorini Oct 6, 2024
096b3b2
- Reldens - v4.0.0 - Fix lifebar display.
damian-pastorini Oct 6, 2024
c9da144
- Reldens - v4.0.0 - Use early return on generate player stats.
damian-pastorini Oct 6, 2024
58d9b62
- Reldens - v4.0.0 - Include user stats validation.
damian-pastorini Oct 6, 2024
dfabd96
- Reldens - v4.0.0 - Improve stats validation log.
damian-pastorini Oct 6, 2024
e3bfb20
- Reldens - v4.0.0 - Include Attacked ID on death update.
damian-pastorini Oct 6, 2024
6093cb7
- Reldens - v4.0.0 - Remove commented unused code.
damian-pastorini Oct 7, 2024
7a09030
- Reldens - v4.0.0 - Fix game-over box display for when players conne…
damian-pastorini Oct 7, 2024
d4a854d
- Reldens - v4.0.0 - Fix players death animation play.
damian-pastorini Oct 7, 2024
1fd6210
- Reldens - v4.0.0 - Fix expected objects behavior on object hit object.
damian-pastorini Oct 7, 2024
8befab5
- Reldens - v4.0.0 - CS minor fix.
damian-pastorini Oct 7, 2024
e8c3ceb
- Reldens - v4.0.0 - Implement players last state handler.
damian-pastorini Oct 7, 2024
990b536
- Reldens - v4.0.0 - Removed unsed required class.
damian-pastorini Oct 7, 2024
e2fd4a3
- Reldens - v4.0.0 - Include player state check methods.
damian-pastorini Oct 7, 2024
0277a18
- Reldens - v4.0.0 - Fix bots connection to room by command argument.
damian-pastorini Oct 8, 2024
f1b51b3
- Reldens - v4.0.0 - Fix GameOver screen on players inState change to…
damian-pastorini Oct 9, 2024
37b7b6e
- Reldens - v4.0.0 - Fix current player validation for lifebar display.
damian-pastorini Oct 9, 2024
b7243a0
- Reldens - v4.0.0 - Fix collisions and path finding issues.
damian-pastorini Oct 9, 2024
0b08931
- Reldens - v4.0.0 - Fix world check for apply gravity.
damian-pastorini Oct 9, 2024
cb7e691
- Reldens - v4.0.0 - Disable and commented debug logs.
damian-pastorini Oct 9, 2024
ed0dbe9
- Reldens - v4.0.0 - Update packages.
damian-pastorini Oct 15, 2024
50098c6
- Reldens - v4.0.0 - Include current scene validation.
damian-pastorini Oct 15, 2024
0e368be
- Reldens - v4.0.0 - Refactor constants names. - Extracted types dete…
damian-pastorini Oct 15, 2024
8c3679d
- Reldens - v4.0.0 - Refactor P2World body state creation.
damian-pastorini Oct 15, 2024
45aaa0f
- Reldens - v4.0.0 - Commented logs from high used methods in collisi…
damian-pastorini Oct 16, 2024
ba33f6f
- Reldens - v4.0.0 - Include new world configurations on migrations.
damian-pastorini Oct 16, 2024
c9628e8
- Reldens - v4.0.0 - Force last lifebar draw to be hidden on player d…
damian-pastorini Oct 16, 2024
e0a7a0a
- Reldens - v4.0.0 - Made collisions groups and masks configurable. -…
damian-pastorini Oct 16, 2024
17622b9
- Reldens - v4.0.0 - Lower logs levels. - Include body world check on…
damian-pastorini Oct 16, 2024
f005ef3
- Reldens - v4.0.0 - CR fixes.
damian-pastorini Oct 16, 2024
37681b3
- Reldens - v4.0.0 - Update sample audio data on migrations to includ…
damian-pastorini Oct 16, 2024
de61156
- Reldens - v4.0.0 - Fix play player animation method to consider pla…
damian-pastorini Oct 16, 2024
f307822
- Reldens - v4.0.0 - Fix play sprite audio to consider current player…
damian-pastorini Oct 16, 2024
70b438f
- Reldens - v4.0.0 - Commented unnecesary logs.
damian-pastorini Oct 17, 2024
50ead88
- Reldens - v4.0.0 - Include target stats validation.
damian-pastorini Oct 17, 2024
bbe2f73
- Reldens - v4.0.0 - Prevent battle start if player is not ready and …
damian-pastorini Oct 17, 2024
50584a0
- Reldens - v4.0.0 - Modify chat creating room flag removal.
damian-pastorini Oct 17, 2024
3d5911d
- Reldens - v4.0.0 - Fix objects indle respawn timer removal. - Inclu…
damian-pastorini Oct 17, 2024
88dc258
- Reldens - v4.0.0 - Implemented createdInstancesByName. - Fix onDisp…
damian-pastorini Oct 17, 2024
4036656
- Reldens - v4.0.0 - Include validation on set collisions group to pr…
damian-pastorini Oct 17, 2024
d4f87f5
- Reldens - v4.0.0 - Improved bots script with options.
damian-pastorini Oct 17, 2024
93c5999
- Reldens - v4.0.0 - Updated packages.
damian-pastorini Oct 17, 2024
768d668
- Reldens - v4.0.0 - Include chat methods parameters validation.
damian-pastorini Oct 17, 2024
f3462f1
- Reldens - v4.0.0 - Fix double-login issue. - Improve login performa…
damian-pastorini Oct 18, 2024
23854dc
- Reldens - v4.0.0 - Change logs levels.
damian-pastorini Oct 18, 2024
c4cce8a
- Reldens - v4.0.0 - Include targetObject validation.
damian-pastorini Oct 18, 2024
369a766
- Reldens - v4.0.0 - Forced npm fix audit.
damian-pastorini Oct 18, 2024
41bfdd3
- Reldens - v4.0.0 - Clear player and objects timers. - Commented unn…
damian-pastorini Oct 20, 2024
a6501e7
- Reldens - v4.0.0 - Clear player state timers. - Replace actions plu…
damian-pastorini Oct 21, 2024
470a614
- Reldens - v4.0.0 - Include missing objects rewards on sample data.
damian-pastorini Oct 21, 2024
7009c2c
- Reldens - v4.0.0 - Fix replaced method from shortcuts in EnemyObject.
damian-pastorini Oct 21, 2024
0d42f51
- Reldens - v4.0.0 - Include bots counter.
damian-pastorini Oct 22, 2024
6381ee4
- Reldens - v4.0.0 - Fix rewards split missing configuration.
damian-pastorini Oct 22, 2024
9157929
- Reldens - v4.0.0 - Remove actions plugin.
damian-pastorini Oct 22, 2024
1a9c570
- Reldens - v4.0.0 - Update packages.
damian-pastorini Oct 22, 2024
9bef68c
- Reldens - v4.0.0 - Improve config get on actions player enricher.
damian-pastorini Oct 22, 2024
874e39e
- Reldens - v4.0.0 - Implement initial position threshold on player s…
damian-pastorini Oct 22, 2024
0494206
- Reldens - v4.0.0 - Fix bots room intial position.
damian-pastorini Oct 22, 2024
bb8c778
- Reldens - v4.0.0 - Implement player death or disable condition for …
damian-pastorini Oct 22, 2024
609f7a0
- Reldens - v4.0.0 - Improve logs on inventory to extract drops rando…
damian-pastorini Oct 22, 2024
f556ed1
- Reldens - v4.0.0 - Implement scene dispose timer.
damian-pastorini Oct 22, 2024
8851074
- Reldens - v4.0.0 - Move configurations getters.
damian-pastorini Oct 22, 2024
1277bdb
- Reldens - v4.0.0 - Renamed variable to avoid confusion with active …
damian-pastorini Oct 23, 2024
02829a6
- Reldens - v4.0.0 - Update enemies interaction area.
damian-pastorini Oct 23, 2024
bb7701b
- Reldens - v4.0.0 - Update enemies interaction area.
damian-pastorini Oct 23, 2024
8d77589
- Reldens - v4.0.0 - Include isGuest flag on activePlayers. - Impleme…
damian-pastorini Oct 23, 2024
d1ae72f
- Reldens - v4.0.0 - Made players last state change configurable.
damian-pastorini Oct 23, 2024
ae24e3c
- Reldens - v4.0.0 - Improve logs and comments.
damian-pastorini Oct 23, 2024
603990b
- Reldens - v4.0.0 - Improve logs and comments.
damian-pastorini Oct 23, 2024
54f3bed
- Reldens - v4.0.0 - Improve logs and comments.
damian-pastorini Oct 23, 2024
7a6e62f
- Reldens - v4.0.0 - Improve logs and comments.
damian-pastorini Oct 23, 2024
7ce2a43
- Reldens - v4.0.0 - Make guest email domain configurable.
damian-pastorini Oct 24, 2024
6e2b1d3
- Reldens - v4.0.0 - Remove wrong log.
damian-pastorini Oct 27, 2024
656643c
- Reldens - v4.0.0 - Fix reset clan ui on player removed from clan.
damian-pastorini Oct 27, 2024
3474ceb
- Reldens - v4.0.0 - Improve clan creation error handling.
damian-pastorini Oct 27, 2024
465657b
- Reldens - v4.0.0 - Fix clan disband or leave issues.
damian-pastorini Oct 27, 2024
cf712fb
- Reldens - v4.0.0 - Removed unnecessary log.
damian-pastorini Oct 27, 2024
407a7d2
- Reldens - v4.0.0 - Improve team invite decline log.
damian-pastorini Oct 27, 2024
97eec07
- Reldens - v4.0.0 - Improve active players handling.
damian-pastorini Oct 28, 2024
f60a252
- Reldens - v4.0.0 - Fix PvP enabled flag with default true.
damian-pastorini Oct 28, 2024
25c91c9
- Reldens - v4.0.0 - Fix world walkable nodes around method.
damian-pastorini Oct 28, 2024
b2d3654
- Reldens - v4.0.0 - Improve Active Players memory to keep a single r…
damian-pastorini Oct 28, 2024
f9bc59a
- Reldens - v4.0.0 - Remove player from activePlayers onLeave from Ro…
damian-pastorini Oct 29, 2024
aacff91
- Reldens - v4.0.0 - Move activePlayers fetch methods.
damian-pastorini Oct 29, 2024
02ac8ff
- Reldens - v4.0.0 - Move allow guest user name configuration.
damian-pastorini Oct 29, 2024
c374004
- Reldens - v4.0.0 - Improve missing events for Battle class log.
damian-pastorini Oct 30, 2024
1db788c
- Reldens - v4.0.0 - Remove existent events property from pvpConfig.
damian-pastorini Oct 30, 2024
5923344
- Reldens - v4.0.0 - Include missing events as property on PlayerEnri…
damian-pastorini Oct 30, 2024
1195779
- Reldens - v4.0.0 - Pre-fetch active rewards and include configurati…
damian-pastorini Oct 30, 2024
42a48f0
- Reldens - v4.0.0 - Modify JoinedSceneRoomEvent to include isGuest p…
damian-pastorini Oct 30, 2024
0e814b3
- Reldens - v4.0.0 - Improve Bots script to include connection time a…
damian-pastorini Oct 30, 2024
a5d9e41
- Reldens - v4.0.0 - Include note about expected log.
damian-pastorini Oct 30, 2024
6acf13c
- Reldens - v4.0.0 - Implement try/catch on update user last login.
damian-pastorini Oct 30, 2024
8f9925f
- Reldens - v4.0.0 - Iclude joined room ID on bots log.
damian-pastorini Oct 30, 2024
2eb64c1
- Reldens - v4.0.0 - Remove unused method from users manager.
damian-pastorini Oct 30, 2024
cd46717
- Reldens - v4.0.0 - Implemented gameRoomInstanceId, current roomId a…
damian-pastorini Oct 30, 2024
a3f6a13
- Reldens - v4.0.0 - Refactor activePlayers, activeUser, login manage…
damian-pastorini Nov 2, 2024
67991b3
- Reldens - v4.0.0 - Packages updates.
damian-pastorini Nov 2, 2024
6013096
- Reldens - v4.0.0 - Missing reward state for player validation.
damian-pastorini Nov 2, 2024
edad054
- Reldens - v4.0.0 - Improve ads loading on create player handler. - …
damian-pastorini Nov 3, 2024
87bfcaa
- Reldens - v4.0.0 - Fix chat private and global messages save.
damian-pastorini Nov 4, 2024
f26d8d9
- Reldens - v4.0.0 - CS fix.
damian-pastorini Nov 4, 2024
0d4db26
- Reldens - v4.0.0 - Include note on demo file.
damian-pastorini Nov 4, 2024
5cecda7
- Reldens - v4.0.0 - Include server URL field in rooms table.
damian-pastorini Nov 4, 2024
c113084
- Reldens - v4.0.0 - Include server URL field in rooms entity.
damian-pastorini Nov 4, 2024
478fede
- Reldens - v4.0.0 - Include rooms server URL in client configuration…
damian-pastorini Nov 4, 2024
342df4e
- Reldens - v4.0.0 - Implement rooms server URL in client side for se…
damian-pastorini Nov 4, 2024
1ef9ff7
- Reldens - v4.0.0 - Implement rooms server URL validation on server …
damian-pastorini Nov 5, 2024
380ae59
- Reldens - v4.0.0 - Implement rooms allowed on server validation.
damian-pastorini Nov 5, 2024
ae21d14
- Reldens - v4.0.0 - Fix installer to start the game server with the …
damian-pastorini Nov 6, 2024
80e860a
- Reldens - v4.0.0 - Fix app server factory to update configuration f…
damian-pastorini Nov 6, 2024
eb391d7
- Reldens - v4.0.0 - Fix app server factory improve logs.
damian-pastorini Nov 6, 2024
c1a72e7
- Reldens - v4.0.0 - Fix app server factory vars assignment.
damian-pastorini Nov 6, 2024
9690038
- Reldens - v4.0.0 - Fix login errors by re-throwing errors. - Preven…
damian-pastorini Nov 7, 2024
232cde6
- Reldens - v4.0.0 - Improve logs. - Moved isChanginScene flag.
damian-pastorini Nov 7, 2024
e78e985
- Reldens - v4.0.0 - Fix client send method on connection lost. - Imp…
damian-pastorini Nov 7, 2024
02836cb
- Reldens - v4.0.0 - Move isChangingScene flag.
damian-pastorini Nov 7, 2024
57794bf
- Reldens - v4.0.0 - Include TODO to improve performance.
damian-pastorini Nov 7, 2024
d75bcf2
- Reldens - v4.0.0 - Fix login errors issues.
damian-pastorini Nov 7, 2024
6254777
- Reldens - v4.0.0 - Include player validation.
damian-pastorini Nov 7, 2024
28b45c4
- Reldens - v4.0.0 - Include TODO to improve performance.
damian-pastorini Nov 7, 2024
4249e84
- Reldens - v4.0.0 - Include current player validation to show lifebar.
damian-pastorini Nov 7, 2024
dfada15
- Reldens - v4.0.0 - Include player schema validation to update playe…
damian-pastorini Nov 7, 2024
3a623dd
- Reldens - v4.0.0 - Include disconnection constant.
damian-pastorini Nov 9, 2024
de7b423
- Reldens - v4.0.0 - Apply Firebase constant for route path.
damian-pastorini Nov 9, 2024
e96ed1d
- Reldens - v4.0.0 - Fix disconnect by session ID return.
damian-pastorini Nov 9, 2024
406e564
- Reldens - v4.0.0 - Improve player changing scene clans data log.
damian-pastorini Nov 9, 2024
03f6b16
- Reldens - v4.0.0 - Implement cross-servers double login automatic d…
damian-pastorini Nov 9, 2024
060c401
- Reldens - v4.0.0 - Update packages.
damian-pastorini Nov 10, 2024
4f5578b
- Reldens - v4.0.0 - Fix administration panel navigation, styles, JSO…
damian-pastorini Nov 11, 2024
3998403
- Reldens - v4.0.0 - Implement Objects importer with command.
damian-pastorini Nov 11, 2024
3d569f9
- Reldens - v4.0.0 - Fix login when not all the servers are up.
damian-pastorini Nov 11, 2024
fab1e6f
- Reldens - v4.0.0 - Allow connection errors be handle by the game-ma…
damian-pastorini Nov 11, 2024
f9b9f93
- Reldens - v4.0.0 - Fix admin panel login error notification.
damian-pastorini Nov 11, 2024
95a680e
- Reldens - v4.0.0 - README.
damian-pastorini Nov 12, 2024
46a2d3b
- Reldens - v4.0.0 - Make user disconnection use publicUrl instead of…
damian-pastorini Nov 12, 2024
a0bd028
- Reldens - v4.0.0 - Fix bots script client instance creation.
damian-pastorini Nov 12, 2024
7f696d8
- Reldens - v4.0.0 - Improve logs.
damian-pastorini Nov 12, 2024
fc12a51
- Reldens - v4.0.0 - Improve logs.
damian-pastorini Nov 12, 2024
7f087d7
- Reldens - v4.0.0 - Fix restore objects timeout and clear intervals.
damian-pastorini Nov 13, 2024
044b27f
- Reldens - v4.0.0 - Include body types list.
damian-pastorini Nov 13, 2024
e44d497
- Reldens - v4.0.0 - Fix rewards pickup while player is dead and broa…
damian-pastorini Nov 13, 2024
5458097
- Reldens - v4.0.0 - Fix objects respawn replacing position change by…
damian-pastorini Nov 13, 2024
45c1b7c
- Reldens - v4.0.0 - Minor CR fixes.
damian-pastorini Nov 13, 2024
bd0eacb
- Reldens - v4.0.0 - Change default no-key value and improve logs.
damian-pastorini Nov 13, 2024
31eb6e4
- Reldens - v4.0.0 - Include dropping flag on objects.
damian-pastorini Nov 13, 2024
d082a0c
- Reldens - v4.0.0 - Include object inState active validation to move…
damian-pastorini Nov 13, 2024
38a11ad
- Reldens - v4.0.0 - Include players death or disable validation to d…
damian-pastorini Nov 13, 2024
5cd0ed1
- Reldens - v4.0.0 - Fix respawn clear intervals.
damian-pastorini Nov 13, 2024
0b35f61
- Reldens - v4.0.0 - Move PvP TODO.
damian-pastorini Nov 13, 2024
f8b2b10
- Reldens - v4.0.0 - Improve rewards logs.
damian-pastorini Nov 13, 2024
eb610dc
- Reldens - v4.0.0 - Remove unnecesary leave battle call from start b…
damian-pastorini Nov 13, 2024
8fd4da2
- Reldens - v4.0.0 - Fix clear intervals to current context.
damian-pastorini Nov 13, 2024
3055f00
- Reldens - v4.0.0 - Include flag for when battle end is been processed.
damian-pastorini Nov 13, 2024
b7dfabc
- Reldens - v4.0.0 - Update Phaser and Colyseus ws-transport packages.
damian-pastorini Nov 14, 2024
2a3b9c3
- Reldens - v4.0.0 - Improve PvE logs and disabled recursive debug log.
damian-pastorini Nov 14, 2024
e2065b3
- Reldens - v4.0.0 - Fix respawn warning about object not present in …
damian-pastorini Nov 14, 2024
c8508e7
- Reldens - v4.0.0 - Improve battle logs.
damian-pastorini Nov 14, 2024
1885a18
- Reldens - v4.0.0 - Fix battle target state.
damian-pastorini Nov 14, 2024
284e5f2
- Reldens - v4.0.0 - Fix minimap cameras behavior after scene change.
damian-pastorini Nov 15, 2024
6d80706
- Reldens - v4.0.0 - Fix close interfaces on scene change.
damian-pastorini Nov 15, 2024
f2f690d
- Reldens - v4.0.0 - Fix minimap open/close behavior on scene change.
damian-pastorini Nov 15, 2024
d608c56
- Reldens - v4.0.0 - Improved points when isChangingScene on GameMana…
damian-pastorini Nov 15, 2024
d75ea5d
- Reldens - v4.0.0 - Commented unnecesary variables and logs.
damian-pastorini Nov 16, 2024
426a00f
- Reldens - v4.0.0 - Fix team invite removal when player accepts a te…
damian-pastorini Nov 16, 2024
d051ae3
- Reldens - v4.0.0 - Fix attacks last hit. - Improve rooms logs.
damian-pastorini Nov 16, 2024
781817b
- Reldens - v4.0.0 - Replace and update colyseus package by @colyseus…
damian-pastorini Nov 18, 2024
414b19a
- Reldens - v4.0.0 - Improve logs and fix idle NPCs.
damian-pastorini Nov 18, 2024
e9c43f0
- Reldens - v4.0.0 - Improve logs and shoot bullet method.
damian-pastorini Nov 18, 2024
ae025db
- Reldens - v4.0.0 - Reduced speed threshold, include bullets conditi…
damian-pastorini Nov 18, 2024
b1fb5ca
- Reldens - v4.0.0 - Removed unnecesary log and include note about it.
damian-pastorini Nov 18, 2024
e5fb572
- Reldens - v4.0.0 - Commented logged debugs to avoid running on unne…
damian-pastorini Nov 18, 2024
06511eb
- Reldens - v4.0.0 - CR fixes.
damian-pastorini Nov 18, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/admin/server/admin-manager-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*
*/

const { MapsImporter } = require('../../import/server/maps-importer');
const { PropertiesHandler } = require('../../game/properties-handler');

class AdminManagerConfig extends PropertiesHandler
Expand All @@ -23,6 +24,7 @@ class AdminManagerConfig extends PropertiesHandler
this.app = serverManager?.app;
this.applicationFramework = serverManager?.appServerFactory?.applicationFramework;
this.fileStorageManager = serverManager?.appServerFactory?.fileStorageManager;
this.mapsImporter = new MapsImporter(serverManager);
this.bodyParser = serverManager?.appServerFactory?.bodyParser;
this.session = serverManager?.appServerFactory?.session;
this.broadcastCallback = (props) => {
Expand Down
442 changes: 283 additions & 159 deletions lib/admin/server/admin-manager.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/admin/server/admin-translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class AdminTranslations
loginWelcome: 'Reldens',
pages: 'Server Management',
management: 'Management',
mapsWizard: 'Maps Generation',
shuttingDown: 'Server is shutting down in:',
submitShutdownLabel: 'Shutdown Server',
submitCancelLabel: 'Cancel Server Shutdown',
Expand Down
2 changes: 2 additions & 0 deletions lib/admin/server/templates-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ module.exports.TemplatesList = {
login: 'login.html',
dashboard: 'dashboard.html',
management: 'management.html',
mapsWizard: 'maps-wizard.html',
mapsWizardMapsSelection: 'maps-wizard-maps-selection.html',
list: 'list.html',
listContent: 'list-content.html',
view: 'view.html',
Expand Down
4 changes: 2 additions & 2 deletions lib/game/server/login-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,10 +182,10 @@ class LoginManager
}
}

async roleAuthenticationCallback(email, password, roleId = false)
async roleAuthenticationCallback(email, password, roleId = 0)
{
let user = await this.usersManager.loadUserByEmail(email);
let validatedRole = !roleId || String(user.role_id) === String(roleId);
let validatedRole = 0 === roleId || String(user.role_id) === String(roleId);
if(user && validatedRole){
let result = this.passwordManager.validatePassword(
password,
Expand Down
4 changes: 4 additions & 0 deletions lib/game/server/theme-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class ThemeManager
projectAssetsPath = '';
projectCssPath = '';
projectIndexPath = '';
projectGenerateDataPath = '';
projectGeneratedDataPath = '';
defaultBrowserBundleOptions = {};

constructor(props)
Expand All @@ -59,6 +61,8 @@ class ThemeManager
this.envFilePath = FileHandler.joinPaths(this.projectRoot, '.env');
this.installationLockPath = FileHandler.joinPaths(this.projectRoot, structure.INSTALL_LOCK);
this.projectThemeName = sc.get(props, 'projectThemeName', structure.DEFAULT);
this.projectGenerateDataPath = FileHandler.joinPaths(this.projectRoot, 'generate-data');
this.projectGeneratedDataPath = FileHandler.joinPaths(this.projectGenerateDataPath, 'generated');
this.reldensModulePath = FileHandler.joinPaths(this.projectRoot, 'node_modules', 'reldens');
this.reldensModuleLibPath = FileHandler.joinPaths(this.reldensModulePath, structure.LIB);
this.reldensModuleThemePath = FileHandler.joinPaths(this.reldensModulePath, structure.THEME);
Expand Down
37 changes: 23 additions & 14 deletions lib/import/server/maps-importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
*/

const { FileHandler } = require('@reldens/tile-map-generator/lib/files/file-handler');
const { FileHandler } = require('../../game/server/file-handler');
const { Logger, sc } = require('@reldens/utils');

class MapsImporter
Expand All @@ -24,8 +24,8 @@ class MapsImporter
this.mapsImages = {};
this.roomsChangePoints = {};
this.roomsReturnPoints = {};
this.fileHandler = new FileHandler();
this.createdRooms = {};
this.generatedDataPath = this.serverManager?.themeManager?.projectGeneratedDataPath;
}

async import(data)
Expand All @@ -45,6 +45,7 @@ class MapsImporter
this.importAssociationsForChangePoints = sc.get(data, 'importAssociationsForChangePoints', false);
this.importAssociationsRecursively = sc.get(data, 'importAssociationsRecursively', false);
this.verifyTilesetImage = sc.get(data, 'verifyTilesetImage', true);
this.setImportFilesPath(data);
if(this.maps){
await this.loadValidMaps();
}
Expand All @@ -53,6 +54,18 @@ class MapsImporter
}
}

setImportFilesPath(data)
{
let generatedDataPath = String(sc.get(data, 'generatedDataPath', ''));
if('' !== generatedDataPath){
this.generatedDataPath = generatedDataPath;
}
let relativeGeneratedDataPath = String(sc.get(data, 'relativeGeneratedDataPath', ''));
if('' !== relativeGeneratedDataPath){
this.generatedDataPath = FileHandler.joinPaths(this.serverManager.projectRoot, relativeGeneratedDataPath);
}
}

validRepositories(repositoriesKey)
{
for(let repositoryKey of repositoriesKey){
Expand All @@ -74,10 +87,10 @@ class MapsImporter
loadMapByTitle(mapTitle, useTitleAsFileName = false)
{
let mapFileName = useTitleAsFileName ? mapTitle : this.maps[mapTitle];
let fullPath = this.fileHandler.joinPaths(this.serverManager.projectRoot, 'generate-data', mapFileName + '.json');
let fileContent = this.fileHandler.exists(fullPath) ? this.fileHandler.readFile(fullPath) : '';
let fullPath = FileHandler.joinPaths(this.generatedDataPath, mapFileName + '.json');
let fileContent = FileHandler.exists(fullPath) ? FileHandler.readFile(fullPath) : '';
if('' === fileContent){
Logger.critical('File "' + mapFileName + '.json" not found.');
Logger.critical('File "' + mapFileName + '.json" not found.', fullPath);
return;
}
let jsonContent = sc.toJson(fileContent);
Expand All @@ -92,12 +105,8 @@ class MapsImporter
Logger.critical('File "' + mapFileName + '.json" must have at least one tileset with an image.');
return;
}
let checkImagePath = this.fileHandler.joinPaths(
this.serverManager.projectRoot,
'generate-data',
tileset.image
);
if(!this.fileHandler.exists(checkImagePath)){
let checkImagePath = FileHandler.joinPaths(this.generatedDataPath, tileset.image);
if(!FileHandler.exists(checkImagePath)){
Logger.critical('File "' + checkImagePath + '" not found.');
return;
}
Expand Down Expand Up @@ -170,9 +179,9 @@ class MapsImporter
copyFiles(fileNames)
{
for(let fileName of fileNames){
let from = this.fileHandler.joinPaths(this.serverManager.projectRoot, 'generate-data', fileName);
let to = this.fileHandler.joinPaths(this.serverManager.themeManager.projectThemePath, 'assets', 'maps');
let result = this.fileHandler.copyFile(from, fileName, to);
let from = FileHandler.joinPaths(this.generatedDataPath, fileName);
let to = FileHandler.joinPaths(this.serverManager.themeManager.projectThemePath, 'assets', 'maps', fileName);
let result = FileHandler.copyFile(from, to);
if(!result){
Logger.critical('Could not copy file "' + from + '" to "' + to + '".');
return false;
Expand Down
73 changes: 71 additions & 2 deletions theme/admin/reldens-admin-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,11 @@ window.addEventListener('DOMContentLoaded', () => {
let listSelect = document.querySelector('.list-select');
if(listSelect){
listSelect.addEventListener('click', (event) => {
console.log('click', event.currentTarget.dataset.checked, event);
let checkboxes = document.querySelectorAll('.ids-checkbox');
for(let checkbox of checkboxes){
checkbox.checked = 1 === Number(event.currentTarget.dataset.checked);
}
event.currentTarget.dataset.checked = 1 === Number(event.currentTarget.dataset.checked) ? 0 : 1;
console.log('changed to:', event.currentTarget.dataset.checked);
});
}

Expand Down Expand Up @@ -166,4 +164,75 @@ window.addEventListener('DOMContentLoaded', () => {
);
}
}

// maps wizard functions:
let mapsWizardsOptions = document.querySelectorAll('.maps-wizard-form .map-wizard-option.with-state');
for(let option of mapsWizardsOptions){
option.addEventListener('click', (event) => {
let wizardOptionsContainer = document.querySelectorAll('.wizard-option-container');
for(let container of wizardOptionsContainer){
container.classList.remove('active');
}
event.currentTarget.parentNode.classList.add('active');
});
}

let mapCanvasElements = document.querySelectorAll('.mapCanvas');
for (let mapCanvas of mapCanvasElements) {
fetch(mapCanvas.dataset.mapJson)
.then(response => response.json())
.then(data => drawMap(mapCanvas, data))
.catch(error => console.error('Error fetching JSON:', error));
}

function drawMap(mapCanvas, mapData)
{
let context = mapCanvas.getContext('2d');
let tileset = new Image();
tileset.src = mapCanvas.dataset.imageKey;
// we are assuming there is only one tileset in mapData.tilesets since the maps are coming from the optimizer:
let tilesetInfo = mapData.tilesets.shift();
let tileWidth = tilesetInfo.tilewidth;
let tileHeight = tilesetInfo.tileheight;
let margin = tilesetInfo.margin;
let spacing = tilesetInfo.spacing;
let columns = tilesetInfo.columns;

tileset.onload = () => {
for(let layer of mapData.layers){
if('tilelayer' !== layer.type){
continue;
}
let width = layer.width;
for(let index = 0; index < layer.data.length; index++){
let tileIndex = Number(layer.data[index]);
if (tileIndex === 0) {
continue;
}
let colIndex = index % width;
let rowIndex = Math.floor(index / width);
// adjusting for 0-based index:
let tileId = tileIndex - 1;
let sx = margin + (tileId % columns) * (tileWidth + spacing);
let sy = margin + Math.floor(tileId / columns) * (tileHeight + spacing);
context.drawImage(
tileset,
sx,
sy,
tileWidth,
tileHeight,
colIndex * tileWidth,
rowIndex * tileHeight,
tileWidth,
tileHeight
);
}
}
};

tileset.onerror = () => {
console.error('Error loading tileset image');
};
}

});
61 changes: 61 additions & 0 deletions theme/admin/reldens-admin-client.scss
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,67 @@ $darkGreen: #27ae60;

}
}

textarea {
position: relative;
display: block;
width: 98%;
padding: 1%;
margin: 1rem 0;
}
}

.maps-wizard {
.main-action-container.maps-selection {
width: 100%;

.wizard-options-container {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
width: 100%;
}
}

.wizard-options-container {
padding: 0;
margin-bottom: 1rem;

.wizard-map-option-container {
display: flex;
flex-direction: column;
list-style: none;

label {
cursor: pointer;
}

canvas {
max-width: 400px;
margin-top: 1rem;
}
}

.wizard-option-container {
list-style: none;

.main-option {
display: inline-block;
cursor: pointer;
}

.maps-wizard-option-content {
display: none;
padding-left: 1.6rem;
}

&.active {
.maps-wizard-option-content {
display: block;
}
}
}
}
}

.entity-view, .entity-edit {
Expand Down
40 changes: 40 additions & 0 deletions theme/admin/templates/maps-wizard-maps-selection.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<h2>Maps Wizard</h2>
<div class="sub-content maps-wizard">
<div class="sub-content-box">
<form class="sub-content-form maps-wizard-form confirmation-required"
name="maps-wizard-form"
id="maps-wizard-form"
action="{{&actionPath}}"
method="post"
enctype="multipart/form-data">
<input type="hidden" name="mainAction" id="mainAction" value="import"/>
<input type="hidden" name="generatedMapsHandler" id="generatedMapsHandler" value="{{&generatedMapsHandler}}"/>
<div class="main-action-container maps-selection">
<p>Select the maps to be imported:</p>
<ul class="wizard-options-container">
{{#maps}}
<li class="wizard-map-option-container">
<div class="selector-box">
<input class="map-wizard-option" type="checkbox" name="selectedMaps[]" id="maps-wizard-map-option-{{&key}}" value="{{&key}}"/>
<input type="hidden" name="map-title-{{&key}}" id="map-title-{{&key}}" value="{{&key}}"/>
<label class="main-option" for="maps-wizard-map-option-{{&key}}">
{{&key}}
</label>
</div>
<canvas
class="mapCanvas"
width="{{&mapWidth}}"
height="{{&mapHeight}}"
data-tile-width="{{&tileWidth}}"
data-tile-height="{{&tileHeight}}"
data-image-key="{{&mapImage}}"
data-map-json="{{&mapJson}}">
</canvas>
</li>
{{/maps}}
</ul>
</div>
<input type="submit" class="button button-primary button-maps-wizard" value="Import Selected Maps"/>
</form>
</div>
</div>
Loading
Loading