[MOD] netMari0.1
Hello.
I've been working on the multiplayer a bit, and i got it working so far,
and i solved the problem with syncronizing the worlds by having everyone paused when someone opens the pause menu.
Also it will only scroll with the player you are playing when you are in multiplayer.
I tweaked everything a bit. There is a console, credits to coolbob44 and teryakisan, i added some commands and made it printing when the function message("string") is called. It will also delete the last line if there is too much text to fit.
I also added "host PORT" and "connect IP:PORT" so you don't have to change netplay.lua the whole time.
Link to the github:
https://github.com/TheSc1ence/netMari0
Tell we what you think! And i'm trying to find out atm what causes it that you can't use the portals of other players in MP.
I've been working on the multiplayer a bit, and i got it working so far,
and i solved the problem with syncronizing the worlds by having everyone paused when someone opens the pause menu.
Also it will only scroll with the player you are playing when you are in multiplayer.
I tweaked everything a bit. There is a console, credits to coolbob44 and teryakisan, i added some commands and made it printing when the function message("string") is called. It will also delete the last line if there is too much text to fit.
I also added "host PORT" and "connect IP:PORT" so you don't have to change netplay.lua the whole time.
Link to the github:
https://github.com/TheSc1ence/netMari0
Tell we what you think! And i'm trying to find out atm what causes it that you can't use the portals of other players in MP.
- Mari0Lu1g1
- Posts: 347
- Joined: 10 Mar 2012, 12:08
How do you install, and how do you make a server?
At first you need "Löve" if you don't have it https://love2d.org/builds/. if you scroll to the bottom you see the newest "Löve" version out, Download & Install it. Make sure you have "LÖVE" icon on your desktop.Mari0Lu1g1 wrote:How do you install, and how do you make a server?
here i give you a direct link to download Science modification: https://github.com/TheSc1ence/netMari0/zipball/master
Download the modification which include the complete game also. Extract the zip you downloaded to desktop. Drag the extracted folder to "LÖVE" and it should now start.
Select which mappack you want to play, select how many players you want to play with you and now start the map.
Press § (The button under esc) and the console should come up. then write "HOST "PORT YOU ARE GOING TO USE"" for example "Host 4000"
It should now say "Press Enter To Start". Tell your friend to instead of typing "Host 4000" write "Connect "your ip" for example if i want my brother to join me in the same network he'd type "connect 192.168.1.69" and it would say "waiting for host".
Now simply press enter and you are ready to roll!!
Also... Thank you very much for this modification Science!! it works really good, haven't discovered any issues yet anyways! Thanks!
Last edited by FlexiBoii on 28 Mar 2012, 23:35, edited 1 time in total.
Hmm, this looks pretty cool. BTW, under some people's "Esc" button is "~" or "`". Also, does this allow you to interact with entities and clear portals? Doing either of those are default netplay causes the other play to crash.
- Mari0Lu1g1
- Posts: 347
- Joined: 10 Mar 2012, 12:08
Thanks!FlexiBoii wrote:At first you need "Löve" if you don't have it https://love2d.org/builds/. if you scroll to the bottom you see the newest "Löve" version out, Download & Install it. Make sure you have "LÖVE" icon on your desktop.Mari0Lu1g1 wrote:How do you install, and how do you make a server?
here i give you a direct link to download Science modification: https://github.com/TheSc1ence/netMari0/zipball/master
Download the modification which include the complete game also. Extract the zip you downloaded to desktop. Drag the extracted folder to "LÖVE" and it should now start.
Select which mappack you want to play, select how many players you want to play with you and now start the map.
Press § (The button under esc) and the console should come up. then write "HOST "PORT YOU ARE GOING TO USE"" for example "Host 4000"
It should now say "Press Enter To Start". Tell your friend to instead of typing "Host 4000" write "Connect "your ip" for example if i want my brother to join me in the same network he'd type "connect 192.168.1.69" and it would say "waiting for host".
Now simply press enter and you are ready to roll!!
Also... Thank you very much for this modification Science!! it works really good, haven't discovered any issues yet anyways! Thanks!
But, it wasn't working, so I just copied everything from the extracted folder to the LOVE folder in the appdata library :)
- Mari0Lu1g1
- Posts: 347
- Joined: 10 Mar 2012, 12:08
Btw my ip is 192.168.1.1 if anyone wants to play with me
EDIT:
When you join tell me in PM
EDIT:
When you join tell me in PM
That's your internal IP!Mari0Lu1g1 wrote:Btw my ip is 192.168.1.1 if anyone wants to play with me
EDIT:
When you join tell me in PM
The one everyone within your home network can join!
to see your external go to for example http://www.whatsmyip.org/
You may also need to portforward port 4000 if you host on that one!
- Mari0Lu1g1
- Posts: 347
- Joined: 10 Mar 2012, 12:08
69.118.163.87FlexiBoii wrote:That's your internal IP!Mari0Lu1g1 wrote:Btw my ip is 192.168.1.1 if anyone wants to play with me
EDIT:
When you join tell me in PM
The one everyone within your home network can join!
to see your external go to for example http://www.whatsmyip.org/
You may also need to portforward port 4000 if you host on that one!
Tell me when you have joined...
- Mari0Lu1g1
- Posts: 347
- Joined: 10 Mar 2012, 12:08
Ok here's my way!seb1332 wrote:i cant get it to work something about sha1
1. Install Love
2. Download Mod
3. Put all the contents in your LOVE folder (just do windows key R and type %appdata%)
4. Open Mari0 (if it works should say netMario and have a new portal gun cursor)
5. Type host (to host), or connect (ip) to join
6. Profit
Last edited by Mari0Lu1g1 on 29 Mar 2012, 00:41, edited 1 time in total.
What do you mean by install mod? And put all the content into the love folder? I never install mods just download.love and execute. that must be why i cant get this workingMari0Lu1g1 wrote:Ok here's my way!seb1332 wrote:i cant get it to work something about sha1
1. Install Love
2. Install Mod
3. Put all the contents in your LOVE folder (just do windows key R and type %appdata%)
4. Open Mari0 (if it works should say netMario and have a new portal gun cursor)
5. Type host (to host), or connect (ip) to join
6. Profit
- Mari0Lu1g1
- Posts: 347
- Joined: 10 Mar 2012, 12:08
Whoops I meant download! But essentially that's what worked for me :3seb1332 wrote:What do you mean by install mod? And put all the content into the love folder? I never install mods just download.love and execute. that must be why i cant get this workingMari0Lu1g1 wrote:Ok here's my way!seb1332 wrote:i cant get it to work something about sha1
1. Install Love
2. Install Mod
3. Put all the contents in your LOVE folder (just do windows key R and type %appdata%)
4. Open Mari0 (if it works should say netMario and have a new portal gun cursor)
5. Type host (to host), or connect (ip) to join
6. Profit
When my friend and I try to connect (no matter who hosts)
Error:
client.lua:4: attempt to concatenate local 'port1' (a nil value)
Traceback:
client.lua:4: in function 'client_load'
console.lua:23: in function 'cmd'
main.lua:1251: in function 'keypressed'
[C]: in function 'xpcall'
He is on win8 and I'm on win xp
Error:
client.lua:4: attempt to concatenate local 'port1' (a nil value)
Traceback:
client.lua:4: in function 'client_load'
console.lua:23: in function 'cmd'
main.lua:1251: in function 'keypressed'
[C]: in function 'xpcall'
He is on win8 and I'm on win xp
I like this, only problem I had was that the line: require "sha1"
Kinda doesn't allow the game to function, so I commented it out and then it worked. Couple of sync issues, but that's expected for beta netplay. Goodjob guys!
Also, here is a suggestion that would help for getting your ip:
in main.lua add:
in console.lua - console.cmd function add:
This doesn't infringe on any rights or anything bad because I own the domain and I approve of this lol.
Kinda doesn't allow the game to function, so I commented it out and then it worked. Couple of sync issues, but that's expected for beta netplay. Goodjob guys!
Also, here is a suggestion that would help for getting your ip:
in main.lua add:
Code: Select all
function getip()
local ip, code = http.request("http://didmyipchange.com/?iponly=true")
return ip
end
Code: Select all
elseif cmd == "getip" then
message("Your ip is: " .. getip())
- Mari0Lu1g1
- Posts: 347
- Joined: 10 Mar 2012, 12:08
Have you port-forwarded?humodz wrote:When my friend and I try to connect (no matter who hosts)
Error:
client.lua:4: attempt to concatenate local 'port1' (a nil value)
Traceback:
client.lua:4: in function 'client_load'
console.lua:23: in function 'cmd'
main.lua:1251: in function 'keypressed'
[C]: in function 'xpcall'
He is on win8 and I'm on win xp
For the "Sha1.lua" missing...Lexsym wrote:I like this, only problem I had was that the line: require "sha1"
Kinda doesn't allow the game to function, so I commented it out and then it worked. Couple of sync issues, but that's expected for beta netplay. Goodjob guys!
just download this http://www.2shared.com/file/d-Eispy0/sha1.html one and put in the "Science Folder" (The "sha1.lua" was extracted from Mari0 Source)
- Mari0Lu1g1
- Posts: 347
- Joined: 10 Mar 2012, 12:08
Mines is ~, Just press the button below the escape key...eroge wrote:I'm on GNU/Linux ubuntu, on an spanish keyboard, and I have two problems:
1- I don't have the "§" character on my keyboard.
2- When I try to use it with a key combination (ALT GR + SHIFT + S) nothing happens.
That's it.
- LightningFire
- Posts: 1828
- Joined: 10 Mar 2012, 17:24
- Contact:
OR
you can just use hamachi.... I guess :p
you can just use hamachi.... I guess :p
- Mari0Lu1g1
- Posts: 347
- Joined: 10 Mar 2012, 12:08
Though, it's incomplete (only 2), but stillxXxrenhoekxXx wrote:you've managed to do online before Maurice
Gratz
don't see the point in excluding it from the github source.FlexiBoii wrote:For the "Sha1.lua" missing...Lexsym wrote:I like this, only problem I had was that the line: require "sha1"
Kinda doesn't allow the game to function, so I commented it out and then it worked. Couple of sync issues, but that's expected for beta netplay. Goodjob guys!
just download this http://www.2shared.com/file/d-Eispy0/sha1.html one and put in the "Science Folder" (The "sha1.lua" was extracted from Mari0 Source)
I'm sorry but I feel offended.xXxrenhoekxXx wrote:you've managed to do online before Maurice
I tried to stay quiet but that's just ridiculous.
He uncommented my networking code, added 2 unneeded hooks, 1 if condition to the scrolling and a heavily flawed "synchronization" method, that will not synchronize shit because of network lag.
It's a nice effort but a way too early release. This is such flawed and incomplete networking that it's not worth the effort if you plan on actually playing the game.
he uncommented it?,Maurice wrote:I'm sorry but I feel offended.xXxrenhoekxXx wrote:you've managed to do online before Maurice
I tried to stay quiet but that's just ridiculous.
He uncommented my networking code, added 2 unneeded hooks, 1 if condition to the scrolling and a heavily flawed "synchronization" method, that will not synchronize shit because of network lag.
It's a nice effort but a way too early release. This is such flawed and incomplete networking that it's not worth the effort if you plan on actually playing the game.
I want my claps back.
I just took a look at the original code and see what you mean. You should slap them around a little bit for trying to steal your work.Maurice wrote:I'm sorry but I feel offended.xXxrenhoekxXx wrote:you've managed to do online before Maurice
I tried to stay quiet but that's just ridiculous.
He uncommented my networking code, added 2 unneeded hooks, 1 if condition to the scrolling and a heavily flawed "synchronization" method, that will not synchronize shit because of network lag.
It's a nice effort but a way too early release. This is such flawed and incomplete networking that it's not worth the effort if you plan on actually playing the game.
Also, to remove one of the flaws, you force the server to send and update the client vars (time and lives are what desync and flaws alot of shit, so I just added a little bit more to the client sync to save them).MAURICE GUÉGAN wrote:STEAL MY SHIT AND I'LL FUCK YOU UP
did you not just read this entire thread? or does reading hurt your eyes? C'MON PEOPLE.hiop wrote:It is too much bugs! :C. Correct please :D