Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   iphone screen size (https://forums.graalonline.com/forums/showthread.php?t=134267642)

brokk 12-24-2012 11:36 PM

iphone screen size
 
Lets say you want to make an iphone server.

What are some of the things you have to keep in mind as far as the screen size goes?

Crono 12-24-2012 11:46 PM

the resolution

Unkownsoldier 12-25-2012 12:05 AM

Do you want to know about the resolution, h x w, or content-related things like how to economize your gui on the your server etc?

brokk 12-25-2012 12:07 AM

Quote:

Do you want to know about the resolution, h x w, or content-related things like how to economize your gui on the your server etc?
If you feel like going in to detail, the more I know, the better

callimuc 12-25-2012 12:49 AM

- you should use as less loops as possible
- you can always set your GraalControl size to the size of an iPhone/iPad size and see if you think that the size of your guis being displayed is alright (i debug my stuff on my iPod right away on iEra; if i couldnt i probably would do the GraalControl thing)
- for weapon things: you should have enough protections that people wont lose their items but if its about to release the server, stefan will check it anyway
- enough protections added (for hacks, secured checks because of CheatEngine users, ...)

pretty much i can think of as of now

cbk1994 12-25-2012 05:21 AM

Not specifically related to screen size (most of those problems are pretty obvious), but here are some quick tips I wrote out a while back:

Quote:

Originally Posted by cbk1994 (Post 1698634)
There are some general common-sense guidelines for lots of players, and some specific things to keep in mind on mobile devices as well:
  • Use as few timeouts as possible. Try using scheduleevent when you need to schedule something, but avoid 0.05 second scheduled events, too.
  • Use the default movement system.
  • Avoid as much scripting as possible in level NPCs.
  • Avoid as much scripting as possible in general.
  • Set player.ani directly instead of using setAni. This only works on v6/iPhone.
  • Design everything to be run by touch.
  • Keep in mind that there are multiple mice (contact points with fingers) and use the mouse ID included in touch events.
  • Use clientstats aggressively to profile your scripts.
  • Use as few timeouts as possible.
  • Use the new transitions in v6 when possible.
  • Use as few client/clientr variables as possible. If it's only needed serverside, store it in a player. variable.
  • Avoid quirky things like joining classes to the player clientside.
  • Do as many things serverside as possible.
  • Avoid triggers where possible for things that can be done serverside entirely (e.g. healing player while in a bed).
  • Avoid abusing SQLite. With so many players, you need to be careful not to use too many queries.
  • Avoid writing to files. Use player attributes to store stuff when possible.
  • Use as few timeouts as possible.

Remember that these are guidelines and not hard rules.

MysticalDragon 12-25-2012 03:32 PM

We have access to Iphone from Delteria but we also use a tool that sets small iPhone display and we can re-size our graal screen to the display so that we can make easy updates without having to log on the iphone server.

I guess I'll share it...


PHP Code:

function onCreated(){
 
show_iphone();
}

function 
show_iphone() {
  
this.showing = !this.showing;
  if (!
this.showing) {
    
hideimg(500);
    
hideimg(501);
    
hideimg(502);
  } else {
    
temp.poly showpoly(500, {
      
00,
      
4800,
      
480320,
      
0320,
      
00
    
});
    
temp.poly.layer 4;
    
temp.poly.alpha 0.05;


    
temp.poly showimg(501"eraiphone_movement1.png"5125);
    
temp.poly.layer 4;
    
temp.poly.alpha 0.3;

    
temp.poly showimg(502"eraiphone_movement4.png"300125);
    
temp.poly.layer 4;
    
temp.poly.alpha 0.3;
  }


P.S
It's really recommended by Stefan that you make a PC server first, Iphone servers have to be really polished.

*Edit
http://i50.tinypic.com/6f5ul3.png


All times are GMT +2. The time now is 11:55 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.