0.4.5 help

zoropig
Member
 
Posts: 50
Joined: Fri May 03, 2013 13:18

0.4.5 help

by zoropig » Fri May 03, 2013 13:20

how do you put your lets say friends server in favorits in 0.4.5
i'm new too all this still but i will try to make mods and textures check out my map too!
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Fri May 03, 2013 14:55

The favorite server list is broken under windows.
 

User avatar
onpon4
Member
 
Posts: 517
Joined: Thu Mar 21, 2013 01:54

by onpon4 » Fri May 03, 2013 15:04

PilzAdam wrote:The favorite server list is broken under windows.


Does it work anywhere? I couldn't figure out how to get it to work in GNU/Linux either.
 

User avatar
PilzAdam
Member
 
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam

by PilzAdam » Fri May 03, 2013 15:10

Its broken in a system wide installation in Linux too (this is fixed in current dev version already).
 

ds-2k
Member
 
Posts: 17
Joined: Sat Jan 26, 2013 05:18

by ds-2k » Fri May 03, 2013 19:39

PilzAdam, could you try making a windows build with a modification to:
https://github.com/minetest/minetest/blob/master/src/serverlist.cpp#L56

replacing
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
std::ifstream istream(path.c_str(), std::ios::binary);

with
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
std::ifstream istream(path.c_str());


and see if the favorites list works for windows users then? (Other uses of ifstream/ofstream such as reading minetest.conf do not use std::ios::binary: https://github.com/minetest/minetest/blob/master/src/settings.h#L169).
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Fri May 03, 2013 19:54

ds-2k wrote:PilzAdam, could you try making a windows build with a modification to:
https://github.com/minetest/minetest/blob/master/src/serverlist.cpp#L56

replacing
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
std::ifstream istream(path.c_str(), std::ios::binary);

with
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
std::ifstream istream(path.c_str());


and see if the favorites list works for windows users then? (Other uses of ifstream/ofstream such as reading minetest.conf do not use std::ios::binary: https://github.com/minetest/minetest/blob/master/src/settings.h#L169).

Here you go: http://sfan.sf.funpic.de/minetest-builds/c55/minetest-0.4.6-a031a15-serverlistfix-win32.7z
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

ds-2k
Member
 
Posts: 17
Joined: Sat Jan 26, 2013 05:18

by ds-2k » Fri May 03, 2013 20:36



I rebooted into windows xp and this works (I joined 2 servers and they both appeared in the server favorites list). When I compiled on linux with that change, the server favorites list continues to work fine, so I think you could pull request the fix to the main repository.
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Fri May 03, 2013 20:53

ds-2k wrote:


I rebooted into windows xp and this works (I joined 2 servers and they both appeared in the server favorites list). When I compiled on linux with that change, the server favorites list continues to work fine, so I think you could pull request the fix to the main repository.

Pull request? I am one of the Minetest Core Developers
Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 

User avatar
sfan5
Member
 
Posts: 3636
Joined: Wed Aug 24, 2011 09:44
GitHub: sfan5
IRC: sfan5

by sfan5 » Sat May 04, 2013 05:50

Mods: Mesecons | WorldEdit | Nuke
Minetest builds for Windows (32-bit & 64-bit)
 


Return to Minetest General

Who is online

Users browsing this forum: No registered users and 13 guests

cron