Fonts

Results 1 to 11 of 11
  1. #1
    cats addicted Zorno is offline
    MemberRank
    Apr 2010 Join Date
    GermanyLocation
    1,465Posts

    Fonts

    Any info how to change ingame fonts ?
    The chatfont dont support letters like Ö Ä Ü and ß and i want to change the font into another truetype font which can handle that letters. I tried with fonts.pck by copying another font into it and name it like the 2 that was already inside but it changed nothing.
    Strange thing is that the font that is displayed over someones head can handle this characters.

    I dont want to make another topic for this:
    Also i want to know if someone has a script in PHP that shows which character is online and the ID of that character.


  2. #2
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Fonts

    I have my WhoIsOnline script that i've made in PHP

    But it's based on the account login and not the character...

    I don't have any knowledges in JSP so idk how to retrieve the online characters.

    I know there is an old JSP script from Iweb that can retrieve the account status.

    Here is the code below:

    rolelogstatus.jsp
    Spoiler:
    <%@ page language="java" pageEncoding="GB2312"%>
    <%@ page import="com.goldhuman.auth.AuthFilter"%>
    <%@ page import="com.goldhuman.service.interfaces.LogInfo"%>
    <%@ page import="com.goldhuman.service.interfaces.GMService"%>
    <%@ page import="com.goldhuman.service.GMServiceImpl"%>
    <%@page import="org.apache.commons.logging.LogFactory"%>
    <%@page import="java.io.*"%>
    <%@page import="java.util.*"%>
    <%
    request.setCharacterEncoding("GB2312");
    String roleid = new String("");
    if(request.getParameter("roleid")!="" && request.getParameter("roleid")!=null){
    roleid = request.getParameter("roleid");
    }
    LogFactory.getLog("rolelogstatus.jsp").info( "roleid=" + roleid + "," + "operator="+ AuthFilter.getRemoteUser(session));

    boolean showTag = false;
    if(request.getSession().getAttribute("username")!=null){
    showTag = true;
    FileWriter fw = new FileWriter("/usr/local/apache-tomcat-5.5.28/iweb_rolemanage.log",true);
    BufferedWriter bw = new BufferedWriter(fw);
    Date dateToday = new Date();
    String logStr = request.getSession().getAttribute("username")+":user status";
    if(roleid!=null){
    logStr = logStr + "-userid="+roleid;
    }
    logStr = logStr + ":"+dateToday;
    bw.write(logStr);
    bw.newLine();
    bw.close();
    bw = null;
    fw = null;
    }

    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Role Management</title>
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <link href="../css/styles_ph.css" rel="stylesheet" type="text/css">
    </head>

    <body>
    <table width="800" border="0" cellspacing="0">
    <%@include file="../include/topheader.jsp"%>
    <tr><td colspan="2">&nbsp;</td></tr>
    <% if(showTag){ %>
    <tr><td colspan="2" class="ver_12_black_b">Role Management > User Sign In Current Status</td></tr>
    <tr><td colspan="2">&nbsp;</td></tr>
    <tr>
    <td width="3%">&nbsp;</td>
    <td width="97%"" align="left">
    <form name="form1" action="rolelogstatus.jsp" method="post">
    <table width="100%" cellspacing="0" cellpadding="3">
    <tr><td class="ver_10_black">Check the user status:</td><tr>
    <tr>
    <td class="ver_10_black">Input User ID:
    <input type="text" name="roleid" value="<%=roleid%>" size="16" maxlength="10" class="text_field"/>
    <input type="submit" value="Check" class="button">
    <input type="button" value="Back" class="button" onclick="location.href='manage.jsp';">
    </td>
    </tr>
    <td class="ver_10_black">
    <br>List of status:
    <br> 0 = Not Signed In
    <br> 3 = On The Main Characters Screen
    <br> 4 = On The Loading Screen
    <br> 5 = In The Perfect World
    <br> 7 = Force Sign In
    </td>
    </tr>
    </table>
    </form>
    <%
    int rid = -1;
    LogInfo info = null;
    GMService gs = new GMServiceImpl();
    if (roleid != null && roleid.trim().length() > 0) { %>
    <br><br>
    <table border="0" cellpadding="3" cellspacing="1" width="80%" align="left" bgcolor="#000000">
    <tr>
    <td class="ver_10_white">User ID</td>
    <td class="ver_10_white">Sign In Current Status</td>
    </tr>
    <%
    try {
    rid = Integer.parseInt(roleid);
    } catch (Exception e) { %>
    <span class="ver_10_black">Please input numbers.</span>&nbsp;<span class="ver_10_red"><%=e.getMessage()%></span>
    <%
    }
    info = new LogInfo(rid, "", "Status of the Role");
    int flag = -1;
    flag = gs.getRoleLogStatus(rid, info);
    %>
    <tr bgcolor="#FFFFFF">
    <td class="ver_10_black"><%=roleid%></td>
    <td class="ver_10_black"><%=flag%></td>
    </tr>
    </table>
    <%
    }%>
    </td>
    </tr>
    <% } else { %>
    <tr><td colspan="2" class="ver_10_red" align="center">You are not allowed to access this page<br><a href="login.jsp">Click here</a> to login.</td></tr>
    <% } %>
    <tr><td colspan="2">&nbsp;</td></tr>
    <%@include file="../include/footer.jsp"%>
    </table>
    </body>
    </html>

    ---------------------------------------------------------

    For the fonts, i know there are 3 folders for it:
    -DATA
    -fonts.pck
    -fonts (a simple folder)

    And i think there's a special encoding or something like that for the game but idk more.
    Last edited by Romulan; 20-09-10 at 10:24 AM. Reason: Adding code...

  3. #3
    cats addicted Zorno is offline
    MemberRank
    Apr 2010 Join Date
    GermanyLocation
    1,465Posts

    Re: Fonts

    Quote Originally Posted by Romulan View Post
    For the fonts, i know there are 3 folders for it:
    -DATA
    -fonts.pck
    -fonts (a simple folder)

    And i think there's a special encoding or something like that for the game but idk more.
    At first, thanks for that script

    Now to the fonts, you can delete the fonts folder. It will work without it. There are just the 2 original fonts from fonts.pck in it.
    Some of mah team started working on the fonts now because im too tired. If they find how to change them, i will tell
    Heading for bed now

  4. #4
    Black Magic Development das7002 is offline
    MemberRank
    Apr 2010 Join Date
    EarthLocation
    2,188Posts

    Re: Fonts

    Quote Originally Posted by Zorno View Post
    At first, thanks for that script

    Now to the fonts, you can delete the fonts folder. It will work without it. There are just the 2 original fonts from fonts.pck in it.
    Some of mah team started working on the fonts now because im too tired. If they find how to change them, i will tell
    Heading for bed now
    font.ini in configs.pck...

  5. #5
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Fonts

    i forget this file o_O ><
    -----------------------------

    Quote Originally Posted by Zorno View Post
    Now to the fonts, you can delete the fonts folder. It will work without it.
    mhh... i thought that folder was important

    But it's not
    Last edited by Romulan; 20-09-10 at 12:52 PM.

  6. #6
    Account Upgraded | Title Enabled! [D@nte] is offline
    MemberRank
    Apr 2010 Join Date
    249Posts

    Re: Fonts

    Quote Originally Posted by Romulan View Post
    I don't have any knowledges in JSP so idk how to retrieve the online characters.
    Afaik it's not possible to get the current online character, since the server is only able to tell what account is online, or better lets say if one character of a specific account is online the server flags all as online...

  7. #7
    Nerd-IO Romulan is offline
    MemberRank
    Feb 2009 Join Date
    BelgiumLocation
    3,333Posts

    Re: Fonts

    I FOUND IT !

    But it's very tricky...

    We can use server Logs to check when a player connects with a specific character on his account.

    And check after to see if there's a log when he has disconnected...

    Idk how to make it works properly but i'm sure it can be possible to determine wich character is online with Logs!

  8. #8
    cats addicted Zorno is offline
    MemberRank
    Apr 2010 Join Date
    GermanyLocation
    1,465Posts

    Re: Fonts

    Quote Originally Posted by Romulan View Post
    I FOUND IT !

    But it's very tricky...

    We can use server Logs to check when a player connects with a specific character on his account.

    And check after to see if there's a log when he has disconnected...

    Idk how to make it works properly but i'm sure it can be possible to determine wich character is online with Logs!
    Hmm. Sounds like a timer, a part that collect log file names and an if...then part. I'll check that

  9. #9
    Account Upgraded | Title Enabled! [D@nte] is offline
    MemberRank
    Apr 2010 Join Date
    249Posts

    Re: Fonts

    Quote Originally Posted by Romulan View Post
    I FOUND IT !

    But it's very tricky...

    We can use server Logs to check when a player connects with a specific character on his account.

    And check after to see if there's a log when he has disconnected...

    Idk how to make it works properly but i'm sure it can be possible to determine wich character is online with Logs!
    Sure you could do it like this but i wouldn't call this ressource optimized...

  10. #10
    cats addicted Zorno is offline
    MemberRank
    Apr 2010 Join Date
    GermanyLocation
    1,465Posts

    Re: Fonts

    About the Fonts. Managed to get the letters ö ä ü working. Only the 2 font files int /element/data are important. Nothing in any PCK or somewhere else. Used Font Creator 6.1 and added the letters manually in those fontfiles and its working fine.
    Just if anybody wants to know

  11. #11
    Black Magic Development das7002 is offline
    MemberRank
    Apr 2010 Join Date
    EarthLocation
    2,188Posts

    Re: Fonts

    Quote Originally Posted by Zorno View Post
    About the Fonts. Managed to get the letters ö ä ü working. Only the 2 font files int /element/data are important. Nothing in any PCK or somewhere else. Used Font Creator 6.1 and added the letters manually in those fontfiles and its working fine.
    Just if anybody wants to know
    I basically said that here



Advertisement