Jump to content
Eternal Lands Official Forums
RipTide

A restore to default button for video/window settings

Recommended Posts

I would like to see a button in options/troubleshoot that would restore all the video/graphics setting and window sizes and locations. I just tried to help someone that lost their mini map off the screen and couldn't get it back. When I got my laptop, full screen wasn't very useable for me, so I had to play with the window sizes until I got the right size. It would have been nice to restore to default.

 

The button could have the message "Next time you start the client, settings will be restored."

 

It would probably need to wait for the next client update, but something that could be added.

Edited by Aquila

Share this post


Link to post
Share on other sites

That might be troublesome to reset to default settings,you ll need to put everything back camera zoom extension etc. If it is only a problem of mini map. Yo can always turn to the lowest resolution and get it back. Will need to relog twice for that, but it can be done

Share this post


Link to post
Share on other sites

An easier solution might be to have an option to put all windows in the center of the main window (or even top-left).

 

And for now, he can try and delete the el.cfg file in the ./main/ directory (same where chat_log is stored). He will get another occasion to select his language and read the im-game rules, and all internal winsows will be in the top-left corner (and probably a few other settings will have changed). The el.ini file is still used normally, though.

Share this post


Link to post
Share on other sites

Another approach is to check that the window is at least partially on-screen when it is opened, and to reset to its default position if not. This is already the case for some windows, where it is not true, that can be fixed. A reset to default option for resolution setting and others could be done. All the defaults are available in the client. Perhaps there could be an option on each tab to reset to defaults. There are a number of options that do not appear in the config window but are accessed from context menus. These are stored in the el.cfg file, so will be reset if that file is deleted. It's mostly my fault they stored there as I did not think we wanted many more config window options.

Share this post


Link to post
Share on other sites

For me, it's gotta be something easy, like checking a box. Programming goes over my head. Ask me to fix a car, the pluming in a house or install a window in a house, sure no problem. Asking me to delete a file or write a line of code, not going to happen. I wouldn't know what file or how to add the code. My extent of programming was copying some lines out of a magazine in the 80's on my commodore 64.

Edited by Aquila

Share this post


Link to post
Share on other sites

Oh yes, an easy option like a simple button would be nice. But the "delete file" method can be used now...

Share this post


Link to post
Share on other sites

Another approach is to check that the window is at least partially on-screen when it is opened, and to reset to its default position if not.

 

I think this would be a great long-term solution. This issue with the mini-map opening offscreen, is reported fairly often.

Share this post


Link to post
Share on other sites

 

Another approach is to check that the window is at least partially on-screen when it is opened, and to reset to its default position if not.

 

I think this would be a great long-term solution. This issue with the mini-map opening offscreen, is reported fairly often.

 

Curious, the mini-map is one of the windows already coded to correct itself if opened off-screen. I had a quick play and that appears to be working. I'm on Linux so can resize the client window without restarting but I do not think that would make a difference. Is there a know set of steps that causes the mini-map to remain hidden?

Share this post


Link to post
Share on other sites

Don't know if this is helpful, but this is my fix for the missing mini map problem that occurs when I resize the screen.

Say I've increased the screen size for instance, but not the mini map size. After instance I'd resize to smaller screen, restart client, but of course have forgotten to move the mini map to where I can see it (e.g. middle of screen) before restart, so it is effectively 'off screen'. I just increase mini map size til I can just see a part of it in the new, smaller screen then reposition it to where I can see all of it again.

 

Hope this helps a bit. Don't know if it works with full-screen, never use that mode.

 

EM

Share this post


Link to post
Share on other sites

OK, looks like the code to move the mini-map back on-screen is not using the correct test. I'll have to see of I can reproduce the problem using MS windows and then I'll know when I've fixed it. If anyone wants to try the change, here's the patch.

diff --git a/minimap.c b/minimap.c
index 2399d50..cb1f9dd 100644
--- a/minimap.c
+++ b/minimap.c
@@ -503,10 +503,10 @@ int display_minimap_handler(window_info *win)
        float x,y;
        int i;
 
-       if(win->pos_x > window_width - 50)
-               move_window(minimap_win,win->pos_id,win->pos_loc,window_width-minimap_size,win->pos_y);
-       if(win->pos_y > window_height - 50)
-               move_window(minimap_win,win->pos_id,win->pos_loc,win->pos_x,window_height-minimap_size);
+       if(win->cur_x > window_width - 50)
+               move_window(minimap_win,win->pos_id,win->pos_loc,window_width-minimap_size,win->cur_y);
+       if(win->cur_y > window_height - 50)
+               move_window(minimap_win,win->pos_id,win->pos_loc,win->cur_x,window_height-minimap_size);
 
        if (enable_controls)
        {

Share this post


Link to post
Share on other sites

 

OK, looks like the code to move the mini-map back on-screen is not using the correct test. I'll have to see of I can reproduce the problem using MS windows and then I'll know when I've fixed it. If anyone wants to try the change, here's the patch.

diff --git a/minimap.c b/minimap.c
index 2399d50..cb1f9dd 100644
--- a/minimap.c
+++ b/minimap.c
@@ -503,10 +503,10 @@ int display_minimap_handler(window_info *win)
        float x,y;
        int i;
 
-       if(win->pos_x > window_width - 50)
-               move_window(minimap_win,win->pos_id,win->pos_loc,window_width-minimap_size,win->pos_y);
-       if(win->pos_y > window_height - 50)
-               move_window(minimap_win,win->pos_id,win->pos_loc,win->pos_x,window_height-minimap_size);
+       if(win->cur_x > window_width - 50)
+               move_window(minimap_win,win->pos_id,win->pos_loc,window_width-minimap_size,win->cur_y);
+       if(win->cur_y > window_height - 50)
+               move_window(minimap_win,win->pos_id,win->pos_loc,win->cur_x,window_height-minimap_size);
 
        if (enable_controls)
        {

Great for linux users but not for windows and this issue happens a lot for me.

Share this post


Link to post
Share on other sites

> Great for linux users but not for windows and this issue happens a lot for me.

 

A patch is not just for Linux users. Anyway, as I said, this bug does not appear to be a problem on Linux but this patch may fix it for Windows users. I cannot see why it would effect platforms differently so someone will have to check. I can do that, but its a PITA for me as I do not use windows.

Share this post


Link to post
Share on other sites

I've now tried running the standard client on Windows 10. For me the mini-map moves itself back on-screen after a window resize then client restart. That means I cannot reproduce the problem. If someone who has the problem wants to try my patch, I've put a windows build from latest source + the above patch here. Let me know if you have the problem with the standard client and this new build fixes it.

Share this post


Link to post
Share on other sites

Will test it and see if it occurs for me but I am only running Windows 7.

Share this post


Link to post
Share on other sites

Will test it and see if it occurs for me but I am only running Windows 7.

Like that standard release of the windows client, the update was built on XP.

Share this post


Link to post
Share on other sites

 

 

Another approach is to check that the window is at least partially on-screen when it is opened, and to reset to its default position if not.

 

I think this would be a great long-term solution. This issue with the mini-map opening offscreen, is reported fairly often.

 

Curious, the mini-map is one of the windows already coded to correct itself if opened off-screen. I had a quick play and that appears to be working. I'm on Linux so can resize the client window without restarting but I do not think that would make a difference. Is there a know set of steps that causes the mini-map to remain hidden?

 

 

Still happens to me occasionally but I use different sizes at different times even adjusting my screen resolution because of bad eyes.

Edited by saxum

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×