Skip to content

Commit 68ca655

Browse files
committed
0.10 luasockets | for more info, check commit
update that added and fixed a few things here and there but also added a whole lot of new bugs: translatable UI text original savegame and mission buttons replaced with client and server buttons the game window is changing now (not much useful) fixed onEnterVehicle where you could enter a vehicle even if there was someone already sitting in it added multiplayer players to map disabled vehicle sounds for now improved vehicle events fixed combine update added client connection timeout fixed server savegame saving in ingamemenu and removed save button for clients fixed sending chat messages with no content it's no longer possible to connect to server with the same name as the server host modifyMPSettings no longer prints contents of saved file to log
1 parent 9c09cd0 commit 68ca655

File tree

7 files changed

+3401
-121
lines changed

7 files changed

+3401
-121
lines changed

LS2008MP/data/menu/MP_client.png

539 Bytes
Loading

LS2008MP/data/menu/MP_server.png

-24 Bytes
Loading

LS2008MP/data/scripts/mainMP.lua

Lines changed: 314 additions & 108 deletions
Large diffs are not rendered by default.

LS2008MP/data/scripts/multiplayer/farmer.i3d

Lines changed: 3070 additions & 0 deletions
Large diffs are not rendered by default.
Loading

LS2008MP/data/scripts/multiplayer/serverMenu.lua

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ function serverMenu:render()
143143

144144
self.selectedOverlay:setPosition(self.spacingLeft, self.selectedPositionBase+(4-self.selectedIndex+(self.startIndex-1))*(self.imageSpacing+self.imageSize));
145145

146-
local numSavegames = table.getn(self.savegames);
146+
local numSavegames = 5;
147147
for i=1, table.getn(self.overlays) do
148148
self.overlays[i]:render();
149149

@@ -158,10 +158,6 @@ function serverMenu:render()
158158
overlay:setPosition(self.spacingLeft + 0.015, 1 - (self.spacingTop+(self.imageSize+self.imageSpacing)*(i-self.startIndex) + self.imageSize));
159159
overlay:render();
160160

161-
if g_isDemo then
162-
self.demoLockedOverlay:setPosition(self.spacingLeft + 0.015, 1 - (self.spacingTop+(self.imageSize+self.imageSpacing)*(i-self.startIndex) + self.imageSize));
163-
self.demoLockedOverlay:render();
164-
end;
165161

166162
local savegameName = g_i18n:getText("Savegame") .. " " .. i;
167163

@@ -202,7 +198,7 @@ function serverMenu:addButton(overlayButton)
202198
end;
203199

204200
function serverMenu:setSelectedIndex(index)
205-
local numSavegames = table.getn(self.savegames);
201+
local numSavegames = 5;
206202
self.selectedIndex = math.max(math.min(index, numSavegames), 1);
207203

208204
if self.selectedIndex > self.startIndex+3 then
@@ -250,6 +246,7 @@ function serverMenu:startSelectedGame()
250246
serverLoadingScreenMode();
251247
MPinitSrvCli = false
252248
MPenabled = not MPenabled
249+
setCaption("LS2008MP v" .. MPversion .. " | Server | ".. MPplayerName)
253250
end;
254251

255252
function serverMenu:deleteSelectedGame()

LS2008MP/multiplayer.lua

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--LS2008MP Multiplayer Settings
1+
--LS2008MP Settings
22

33
--Server IP
44
MPip = "176.101.178.133"
@@ -9,25 +9,32 @@ MPport = 2008
99
--Player Name
1010
MPplayerName = "Player"
1111

12-
--add random numbers to your name
12+
--Random numbers on end of your name
1313
MPplayerNameRndNums = false
1414

15-
--render the text on top
15+
--Render text on top
1616
MPrenderDebugText = true
1717

18-
--use the new LS2008 logo?
18+
--Use the new LS2008 logo
1919
MPuseNewLogo = true
2020

21-
--chat key binding (either ASCII key numbers or look in InputBindings.xml or /shared/scripts/foundation/input.lua)
21+
--Chat key binding (either ASCII key numbers or look in InputBindings.xml or /shared/scripts/foundation/input.lua)
2222
MPchatKey = Input.KEY_t
2323

24+
--Main menu buttons
2425
MPclientButtonPath = "data/menu/MP_client.png"
2526
MPserverButtonPath = "data/menu/MP_server.png"
2627
MPmainMenuButtonsText = false
2728

2829
--if you want to use generic buttons in the main menu instead of the stock game themed buttons, remove those two "--" comment symbols in front of lines below
2930
--and also you can comment the three lines above if you want, it's not necessary
30-
3131
--MPclientButtonPath = "data/missions/hud_env_base.png"
3232
--MPserverButtonPath = "data/missions/hud_env_base.png"
33-
--MPmainMenuButtonsText = true
33+
--MPmainMenuButtonsText = true
34+
35+
--LS2008 translatable strings
36+
MPmenuPlayerText = "Player name"
37+
MPmenuIPText = " IP address"
38+
MPmenuPortText = "Port number"
39+
MPmenuWaitText = "Wait.."
40+
MPsyncingDataText = "Syncing game data with %s\n Please wait..."

0 commit comments

Comments
 (0)