Add a basic welcome popup

master
Solebull 2018-12-16 22:00:56 +01:00
parent fe7fe05154
commit badb7d32a4
4 changed files with 47 additions and 6 deletions

32
ROADMAP
View File

@ -46,6 +46,8 @@ wool_dark_green.png
- [X] Add a bed mod https://github.com/minetest/minetest_game/tree/master/mods/beds
It is already present : seulement red, red, white ?
Test it in creative. It works. So only red beds :(
- [ ] Find more and more texture packs
- [ ] Try to find a lucky block mod
- [ ] Placing a block near a cactus should cut it
- [ ] The actual death message about Serena is wrong (just a random one)
- [ ] Try a faction mod
@ -112,7 +114,9 @@ with exaltion
- [ ] Find some female skins
- See this error WARNING[Server]: Assignment to undeclared global "p2" inside a function at ...rainbru/.minetest/games/minetest-pvp/mods/ruins/init.lua:99.
**** TODO [feature_Factions] Try to add factions mod
CLOCK: [2018-12-16 dim. 16:34]
CLOCK: [2018-12-16 dim. 19:42]--[2018-12-16 dim. 20:12] => 0:30
CLOCK: [2018-12-16 dim. 18:14]--[2018-12-16 dim. 19:16] => 1:02
CLOCK: [2018-12-16 dim. 16:34]--[2018-12-16 dim. 17:31] => 0:57
CLOCK: [2018-12-15 sam. 15:56]--[2018-12-15 sam. 16:47] => 0:51
CLOCK: [2018-12-15 sam. 15:44]--[2018-12-15 sam. 15:49] => 0:05
*To be done for Wed. 19 Dec. 2018*
@ -127,13 +131,25 @@ with exaltion
- [X] See and fix this error : factions can't save file
- [X] Rename the baby zombie as Serena
- [X] May change death message to "Victimisé par Serena")
- [ ] Try to find a lucky block mod
- [ ] Try to find some texture packs
- [X] Try to find some texture packs
Try with 2/3 popular new texture packs
- [X] PixelBOX : ok
- [X] Pixel-Perfection/ : not so new, many woods are the same
- [X] Isabell II ok
- [X] Vilija ok
- [ ] Again a LuaEntity name "mobs_mc:baby_zombie" not defined ERROR
Maybe because on a generated map before changed baby_zimbie name
- [ ] We should be able to create a hoe fom the right
Actually only stone:stone
empty:wood
Should also be wood:empty
- [ ] Maybe install https://github.com/Sokomine/mob_world_interaction
To fix our NPC absence issue : Installed but no NPC
- [ ] https://github.com/Sokomine/gates_long could be fine
- [ ] Maybe add a little UI as inventopy tab
- [ ] Should be tested "degats entre alliés"
- [ ] Maybe add a little UI for the faction as the inventoy tab
but formspec are difficult to use
- [ ] Should be tested "degats entre alliés" : activés par default
- [ ] See this errors
[mg_villages] ERROR: Did not find a suitable replacement for cottages:shelf (suggested but inexistant: cottages:shelf). Building: chateau_without_garden.
[mg_villages] ERROR: Did not find a suitable replacement for cottages:bench (suggested but inexistant: cottages:bench). Building: chateau_without_garden.
@ -145,6 +161,12 @@ with exaltion
[mg_villages] ERROR: Did not find a suitable replacement for cottages:hatch_steel (suggested but inexistant: cottages:hatch_steel). Building: chateau_without_garden.
[mg_villages] ERROR: Did not find a suitable replacement for cottages:barrel_lying (suggested but inexistant: cottages:barrel_lying). Building: chateau_without_garden.
[mg_villages] ERROR: Did not find a suitable replacement for cottages:barrel (suggested but inexistant: cottages:barrel). Building: chateau_without_garden.
**** TODO [feature_WelcomePopup] Add a simple welcome message
- [-] Find a way to print a server popup
It seems we have to show a formspec
Started in welcome_popup/
- [X] FIXED, we need a first size[] command
- [ ] Continue with more text and maybe a button
**** DONE [NPC_village] Testing a NPC village mod
CLOCK: [2018-12-14 ven. 16:10]--[2018-12-14 ven. 16:27] => 0:17

4
TODO
View File

@ -9,7 +9,9 @@ minetest-solebull - ??? - A PVP/faction game for minetest based on Cobalt.
(8 items by revision)
* v0.0.1-2 (13 Dec. 2018 - ???)
- (4) Fix a saving issue with factions mod
- (6) Add a basic welcome popup
- Add two references on Séréna
- Fix a saving issue with factions mod
- Add the factions mod and its sdependency
- Remove whitelist mod
- Finally handle NPC villages generation

View File

@ -1,3 +1,5 @@
motd= Bienvenue sur le serveur Faction/PVP de Solebull!
# 1 day-night cycle lasts 24 minutes instead of 20.
time_speed = 60

View File

@ -0,0 +1,15 @@
-- Should welcome new player with a great popup
minetest.register_on_joinplayer(function(player)
local name = player:get_player_name()
local welcome_formspec = "size[10,6.2]"..
"label[1.0,1.0;Bienvenue "..name..
" sur le serveur PVP/Faction de Solebull !\n\n"..
"Ce serveur et cette map ne servent pour le moment qu'a des fins\n"..
"de test et de développement. \n\n"..
"La configuration peut changer a tou moement et la map peut être\n"..
"réinitialisée au prochain stream. \n\nMerci et bon jeu!]"..
"button[3.0,5.0;4.0,0.2;OK;OK]"
minetest.show_formspec(name, "default:welcome_popup", welcome_formspec)
end)