[MOD] netMari0.1

Mods, guides how to use and install mods go right in here.
Post Reply
Science
Posts: 4
Joined: 28 Mar 2012, 21:59

Post » 28 Mar 2012, 22:18

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.
Image
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.
Image
Image
I also added "host PORT" and "connect IP:PORT" so you don't have to change netplay.lua the whole time.
Image

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.

User avatar
Mari0Lu1g1
Posts: 347
Joined: 10 Mar 2012, 12:08

Post » 28 Mar 2012, 23:10

How do you install, and how do you make a server?

FlexiBoii
Posts: 5
Joined: 28 Mar 2012, 23:18

Post » 28 Mar 2012, 23:30

Mari0Lu1g1 wrote: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.
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.

User avatar
Zlmpery
Posts: 339
Joined: 05 Feb 2012, 19:12
Contact:

Post » 28 Mar 2012, 23:33

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.

FlexiBoii
Posts: 5
Joined: 28 Mar 2012, 23:18

Post » 28 Mar 2012, 23:41

Zlmpery wrote:BTW, under some people's "Esc" button is "~" or "`".
ohh... forgot that one!

the "§" Button anyways.

User avatar
Mari0Lu1g1
Posts: 347
Joined: 10 Mar 2012, 12:08

Post » 28 Mar 2012, 23:48

FlexiBoii wrote:
Mari0Lu1g1 wrote: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.
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!
Thanks!
But, it wasn't working, so I just copied everything from the extracted folder to the LOVE folder in the appdata library :)

User avatar
Mari0Lu1g1
Posts: 347
Joined: 10 Mar 2012, 12:08

Post » 28 Mar 2012, 23:51

Btw my ip is 192.168.1.1 if anyone wants to play with me

EDIT:

When you join tell me in PM

FlexiBoii
Posts: 5
Joined: 28 Mar 2012, 23:18

Post » 28 Mar 2012, 23:58

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
That's your internal IP!

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!

User avatar
Mari0Lu1g1
Posts: 347
Joined: 10 Mar 2012, 12:08

Post » 29 Mar 2012, 00:04

FlexiBoii wrote:
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
That's your internal IP!

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!
69.118.163.87
Tell me when you have joined...

seb1332
Posts: 10
Joined: 16 Mar 2012, 01:14

Post » 29 Mar 2012, 00:31

i cant get it to work something about sha1

User avatar
Mari0Lu1g1
Posts: 347
Joined: 10 Mar 2012, 12:08

Post » 29 Mar 2012, 00:35

seb1332 wrote:i cant get it to work something about sha1
Ok here's my way!
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.

seb1332
Posts: 10
Joined: 16 Mar 2012, 01:14

Post » 29 Mar 2012, 00:39

Mari0Lu1g1 wrote:
seb1332 wrote:i cant get it to work something about sha1
Ok here's my way!
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
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 working

User avatar
Mari0Lu1g1
Posts: 347
Joined: 10 Mar 2012, 12:08

Post » 29 Mar 2012, 00:42

seb1332 wrote:
Mari0Lu1g1 wrote:
seb1332 wrote:i cant get it to work something about sha1
Ok here's my way!
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
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 working
Whoops I meant download! But essentially that's what worked for me :3

seb1332
Posts: 10
Joined: 16 Mar 2012, 01:14

Post » 29 Mar 2012, 01:18

IDK if i misunderstood this but i still cannot get it working

User avatar
humodz
Posts: 10
Joined: 09 Mar 2012, 00:02

Post » 29 Mar 2012, 01:36

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

User avatar
Lexsym
Posts: 84
Joined: 04 Feb 2012, 05:32
Contact:

Post » 29 Mar 2012, 01:37

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:

Code: Select all

function getip()
	local ip, code = http.request("http://didmyipchange.com/?iponly=true")
	return ip
end
in console.lua - console.cmd function add:

Code: Select all

elseif cmd == "getip" then
		message("Your ip is: " .. getip())
This doesn't infringe on any rights or anything bad because I own the domain and I approve of this lol.

User avatar
Mari0Lu1g1
Posts: 347
Joined: 10 Mar 2012, 12:08

Post » 29 Mar 2012, 01:46

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
Have you port-forwarded?

FlexiBoii
Posts: 5
Joined: 28 Mar 2012, 23:18

Post » 29 Mar 2012, 01:56

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!
For the "Sha1.lua" missing...
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)

User avatar
Mari0Lu1g1
Posts: 347
Joined: 10 Mar 2012, 12:08

Post » 29 Mar 2012, 02:01

viewtopic.php?f=8&t=1224
Made a Public Server

eroge
Posts: 9
Joined: 29 Mar 2012, 01:55

Post » 29 Mar 2012, 02:03

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.

User avatar
Mari0Lu1g1
Posts: 347
Joined: 10 Mar 2012, 12:08

Post » 29 Mar 2012, 02:07

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.
Mines is ~, Just press the button below the escape key...

User avatar
LightningFire
Posts: 1828
Joined: 10 Mar 2012, 17:24
Contact:

Post » 29 Mar 2012, 02:08

OR
you can just use hamachi.... I guess :p

eroge
Posts: 9
Joined: 29 Mar 2012, 01:55

Post » 29 Mar 2012, 02:14

Mari0Lu1g1 wrote: Mines is ~, Just press the button below the escape key...
It does not work on GNU/Linux :-/

Edit: BTW, 2 players only?

User avatar
renhoek
Posts: 4545
Joined: 11 Feb 2012, 10:04

Post » 29 Mar 2012, 02:45

you've managed to do online before Maurice
EDIT: wtf happened to the image?
Last edited by renhoek on 02 Apr 2012, 10:09, edited 1 time in total.

User avatar
Mari0Lu1g1
Posts: 347
Joined: 10 Mar 2012, 12:08

Post » 29 Mar 2012, 02:47

xXxrenhoekxXx wrote:you've managed to do online before Maurice
Image
Though, it's incomplete (only 2), but still
Gratz

User avatar
Lexsym
Posts: 84
Joined: 04 Feb 2012, 05:32
Contact:

Post » 29 Mar 2012, 04:19

FlexiBoii wrote:
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!
For the "Sha1.lua" missing...
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)
don't see the point in excluding it from the github source.

Maurice
Stabyourself.net
Posts: 2145
Joined: 01 Feb 2012, 20:19

Post » 29 Mar 2012, 08:48

xXxrenhoekxXx wrote:you've managed to do online before Maurice
Image
I'm sorry but I feel offended.
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.

User avatar
renhoek
Posts: 4545
Joined: 11 Feb 2012, 10:04

Post » 29 Mar 2012, 09:15

Maurice wrote:
xXxrenhoekxXx wrote:you've managed to do online before Maurice
Image
I'm sorry but I feel offended.
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?,

I want my claps back.

User avatar
Lexsym
Posts: 84
Joined: 04 Feb 2012, 05:32
Contact:

Post » 29 Mar 2012, 09:30

Maurice wrote:
xXxrenhoekxXx wrote:you've managed to do online before Maurice
Image
I'm sorry but I feel offended.
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 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 GUÉGAN wrote:STEAL MY SHIT AND I'LL FUCK YOU UP
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
Stabyourself.net
Posts: 2145
Joined: 01 Feb 2012, 20:19

Post » 29 Mar 2012, 11:13

Eh, no need to be mean to science, he never really claimed to have written the multiplayer.

Science
Posts: 4
Joined: 28 Mar 2012, 21:59

Post » 29 Mar 2012, 12:45

Whoa...
Okay to make this clear:
This was made because i was bored, i never said i MADE the mp, neither is this fully working.
I just tried by best to make it "playable".

User avatar
hiop
Posts: 5
Joined: 01 Apr 2012, 18:15

Post » 01 Apr 2012, 19:52

It is too much bugs! :C. Correct please :D

User avatar
Lone Wolf
Posts: 228
Joined: 05 Mar 2012, 00:41
Contact:

Post » 01 Apr 2012, 20:50

hiop wrote:It is too much bugs! :C. Correct please :D
did you not just read this entire thread? or does reading hurt your eyes? C'MON PEOPLE.

Post Reply