bandi94 Posted June 17, 2013 Share Posted June 17, 2013 Hy so after a long time i am planning to play again MTA:SA after many player's from my server asked me to start my server again bk they miss it. And after all i am missing MTA to. ATM i don't have GTA/MTA on my PC bk i don't have time for it bk i need to learn for big exam's at school they are in 2 week's. So i am planning to rescript my whole server from 0. First thing i remember is the disastrous "relative" scaling of the game. They tryed to make a system to keep thing's on the same position and the same size on different screen size's but they prity much faild. I remember that the logo move's 4-5cm between two screen size's(following each other). So my question would be if they made some change's on relative position or is the same bad system. If is the same then i think a personal absolute to relative system would be much better ? After all if i start from 0 i don't wanna use that bad system again. Then I had no choice bk i started my whole menu with relative position but now starting again from 0 i can choice (If i remember correctly it was MTA 1.1 when i stoped my server) THX Link to comment
DiSaMe Posted June 17, 2013 Share Posted June 17, 2013 What "bad system"? Who failed? I've been scripting on MTA since 2008 (about a month after the release of MTA SA DM development preview) and haven't got any problems related to this. Relative coordinates are simple. Multiply them by screen size and you get absolute coordinates. That's not "disastrous" or "bad". That is clear and perfect. If that's not what you need to do some specific task, then calculate the absolute coordinates yourself, like I've done a few times. Link to comment
bandi94 Posted June 17, 2013 Author Share Posted June 17, 2013 Yes it's prity bad. Who faild ? Who made the GUI system ? What you mean prity good ? My whole server used relative position (0-1) and there was not on the same position . To don't speak about monitors . On my PC on 800x600 the logo was 10cm from left if i changed to 1024x... fail the logo was 15cm from left ... So you mean this prity good? And 5 cm is prity much it's not the same if you see the full pic or you have 5cm missing. And many player's sayd this thing i made the whole thing on 1024x and some of the player ussed bigger resolution and there was prity bigg problem's the text was out from the pic. And other stuff's. Link to comment
DiSaMe Posted June 17, 2013 Share Posted June 17, 2013 I said and I'm going to repeat it again: it's simple and perfect. Maybe you messed something up with text alignment, I'm not sure, but the fact is, the relative coordinate is always at the same position of the screen with any resolution. That makes it relative. There are no problems with them. If you tried to use them to solve some problem whom relative coordinates are not meant to solve, then it's your problem. You cannot blame the shovel just because it's very hard to chop down a tree using it. Link to comment
arezu Posted June 18, 2013 Share Posted June 18, 2013 (faceplam) It's the kind of math you learn when you are less than 10 years old. Very easy. Link to comment
bandi94 Posted June 18, 2013 Author Share Posted June 18, 2013 (faceplam) It's the kind of math you learn when you are less than 10 years old. Very easy. I am not speaking about math. I am talking about relative system of MTA. LOL read before you post something...... OK i will be back after my exam's and i will show you how good is. (What to mess up i draw'd a simpel png image in relative pos and with relative pos to draw'd a text on it on 1024 all good but if i changed to a bigger screen size the text moved down 0.5cm on same monitor so it's not bk the aspect ration...... ) Link to comment
ixjf Posted June 18, 2013 Share Posted June 18, 2013 Relative positioning is not magic, I am not going to repeat what has been said previously. Link to comment
DiSaMe Posted June 18, 2013 Share Posted June 18, 2013 If you want to blame MTA, then the problem is not even related to relative positioning. The problem is that MTA doesn't have a scripting function readMyMindAndDoWhatIWantAutomatically(). Link to comment
Moderators IIYAMA Posted June 18, 2013 Moderators Share Posted June 18, 2013 OK i will be back after my exam's and i will show you how good is. (What to mess up i draw'd a simpel png image in relative pos and with relative pos to draw'd a text on it on 1024 all good but if i changed to a bigger screen size the text moved down 0.5cm on same monitor so it's not bk the aspect ration...... ) pictures aren't vectors, You can't scale or force them to a new resolution without making it ugly. (more then 20% scaling becomes unusable in the graphical industrial) btw: You can call the correct image from your/a website.https://wiki.multitheftauto.com/wiki/FetchRemote Very easy to use and when you use it client side, the server don't have to send those big images and they will fit on any screen you like. (if you can photoshop a little bit) To protect your url's you can send them from serverside. and no I haven't tried this before, but I will start using this in the future. Link to comment
bandi94 Posted June 18, 2013 Author Share Posted June 18, 2013 If you want to blame MTA, then the problem is not even related to relative positioning. The problem is that MTA doesn't have a scripting function readMyMindAndDoWhatIWantAutomatically(). OK, ok i am done whit this discussion , i can tell that you look at MTA like a perfect game engine without defects. P.S For what i would need "readMyMindAndDoWhatIWantAutomatically()" when i told him relative position "0.2,0.05" relative size "0.4,0.2" and after change'd the resolution it look's like position "0.4,0.1" ?? So i think i need to use "readMyMindAndDoWhatIWantAutomatically(keep_that_F***_png_at_15cm_from_left_on_all_resolutions_and_dont_move_it_to_right!!)" Link to comment
DiSaMe Posted June 18, 2013 Share Posted June 18, 2013 Well, if you provide some screenshots which clearly show how "disastrous" the coordinates are, I may change my opinion. But as for now, I don't see what's wrong, since I have been scripting on MTA for more than 5 years and have never had any problems with that, nor I have any idea how an error in the relative-to-absolute calculations could be made, so I view the system of relative coordinates as simple and perfect with no possibility of some point being in different positions on different resolutions. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now