Item Search
     
BG-Wiki Search
+ Reply to Thread
Page 1 of 6 1 2 3 ... LastLast
Results 1 to 20 of 109
  1. #1

    Linking linkshell chat to our website

    Hi everyone. Recently I needed a project, and I thought I'd share the result with the FFXI community. I run the website for Orion's Door, an endgame linkshell on Odin. The site has a chat function for people that are logged on, and I figured there had to be a way to link that chatbox to the in-game linkshell chat.

    So I wrote a program I call Chatlink. It takes advantage of Windower's Logger plugin to extract lines from linkshell conversations and post them to the website so they can be shown in the chatbox. This is nothing new, I know. The real trick was getting messages posted in the chatbox to show up in-game. Here's a couple screenshots demonstrating how it looks:

    http://orionsdoor.com/forums/files/chatbox_side_425.jpg

    http://orionsdoor.com/forums/files/ingame_side_604.jpg

    Before anyone asks, no, I'm not going to post the code. That would present a security risk to our website as well as our LS conversation. I will, however, go over my program design so the more technically inclined among you might be able to create your own version.

    There are four threads and two queues in my program. The threads are:

    1. Website to PC
    2. PC to FFXI
    3. FFXI to PC
    4. PC to Website

    Each thread simply does exactly that. The Website to PC thread grabs stuff from the chatbox and puts the relevant strings in a queue. The PC to FFXI thread pops the strings off the queue and pushes them to the game. The other direction follows the same structure. But the big question is, what is an easy way to inject text into the game?

    It's actually remarkably simple. There are two scripts: chatlink.script and chattext.script. Chatlink.script looks like this:

    pause 2;
    exec chattext.script;
    exec chatlink.script;

    In effect, it executes chattext.script and then loops every two seconds, forever. The key thread, PC to FFXI, simply updates chattext.script with the necessary "input /l <text goes here>" line every two seconds, then writes out a blank file when it's not in use.

    If anyone has questions about the design, I'd be happy to point you in the right direction. Keep in mind you'll need a secondary FFXI account and a PC that can host it 24/7, so this definitely isn't for everyone. But I'll admit, accessing linkshell chat over http while I'm at work, or anywhere else on my iPhone is pretty damn fun.

    Cheers!

  2. #2
    Banned.

    Join Date
    Sep 2005
    Posts
    1,220
    BG Level
    6

    Re: Linking linkshell chat to our website

    AWESOME

  3. #3
    Nidhogg
    Join Date
    Sep 2007
    Posts
    3,933
    BG Level
    7
    FFXIV Character
    Serefina Solfyre
    FFXIV Server
    Odin
    FFXI Server
    Bahamut

    Re: Linking linkshell chat to our website

    That seems incredibly cool :O

  4. #4
    The Mizzle Fizzle of Nikkei's Haremizzle

    Join Date
    Feb 2006
    Posts
    22,040
    BG Level
    10
    FFXI Server
    Bismarck

    Re: Linking linkshell chat to our website

    Oh wow that's awesome. I thought about doing something like this about a year ago but it never came to fruition sadly. I am glad to see someone tried it out and got it up and running. I cant express enough how cool that is. Kudos to you!

  5. #5
    Yoshi P
    Join Date
    Mar 2008
    Posts
    5,012
    BG Level
    8
    FFXIV Character
    Cyn Dane
    FFXIV Server
    Hyperion
    FFXI Server
    Valefor

    Re: Linking linkshell chat to our website

    Yeah, it's a great idea lol. I know I tend to use FFXI as a chatroom sometimes as it is!

  6. #6
    CoP Dynamis
    Join Date
    Dec 2005
    Posts
    235
    BG Level
    4
    FFXI Server
    Odin

    Re: Linking linkshell chat to our website

    Yeah this is very awesome to play with. I had it up and running on my HTC touch as well, fun to chat with LS while on the go. Miisha has done so much with our website in terms of LS management, points, wish lists, mission status, job levels etc. Someone should hound him to release this as a package "All in one LS management system" or something.

    Good work Miisha!

  7. #7

    Re: Linking linkshell chat to our website

    By request, here it is running on my iPhone. Sorry my camera sucks.

    http://orionsdoor.com/forums/files/iphonelschat_538.jpg

  8. #8

    Re: Linking linkshell chat to our website

    Oh my god this is amazing

  9. #9
    Campaign
    Join Date
    Oct 2006
    Posts
    6,662
    BG Level
    8
    FFXIV Character
    Heart Underblade
    FFXIV Server
    Hyperion
    WoW Realm
    Stormrage

    Re: Linking linkshell chat to our website

    is this for real? this would be a godsend if it does lol

  10. #10

    Re: Linking linkshell chat to our website

    Nice.

    Was working on a similar project with ajax... How did you create the remote device > in-game parse?
    I was able to code a parse of the logs and post to the remote device but doing the reverse is proving to be quite a challenge.

  11. #11
    The Tower
    Join Date
    Apr 2005
    Posts
    2,150
    BG Level
    7
    FFXIV Character
    Stromgarde Siren
    FFXIV Server
    Gilgamesh
    FFXI Server
    Siren

    Re: Linking linkshell chat to our website

    This is incredibly cool. Nice work!

  12. #12
    CoP Dynamis
    Join Date
    Dec 2005
    Posts
    235
    BG Level
    4
    FFXI Server
    Odin

    Re: Linking linkshell chat to our website

    Quote Originally Posted by SamanosukeShiva
    is this for real? this would be a godsend if it does lol
    Yeah it works. Been using it the last couple days ^^

  13. #13
    WASTE OF CURRENCY
    I CAN'T I CAN'T I CAN'T

    Join Date
    Feb 2006
    Posts
    9,024
    BG Level
    8
    FFXIV Character
    Izzy Izumi
    FFXIV Server
    Sargatanas
    FFXI Server
    Phoenix
    WoW Realm
    Arthas

    Re: Linking linkshell chat to our website

    This is fucking awesome. I've always wanted something like this!

  14. #14

    Re: Linking linkshell chat to our website

    too cool.

  15. #15
    Salvage Bans
    Join Date
    Jan 2007
    Posts
    766
    BG Level
    5
    FFXI Server
    Ragnarok

    Re: Linking linkshell chat to our website

    Wouldn't it be just as easy to use a LS mule char or something to port things the other way? IE from Website > In game chat?

    I can see some incredible uses for this.


    Edit: Ignore -- was being dumb.

  16. #16
    Un-Rad Conrad
    Join Date
    Oct 2006
    Posts
    5,043
    BG Level
    8
    FFXI Server
    Carbuncle

    Re: Linking linkshell chat to our website

    Is it safe, though? This seems like something that's easily detectable/bannable.

    It's still friggin' awesome, though.

  17. #17
    St. Fiat
    THE TIME FOR QUESTIONS
    HAS PASSED

    Join Date
    Sep 2005
    Posts
    3,808
    BG Level
    7

    Re: Linking linkshell chat to our website

    Quote Originally Posted by Skirkle
    Is it safe, though? This seems like something that's easily detectable/bannable.

    It's still friggin' awesome, though.
    How is it detectable? Once it's on your system they have no way of knowing where it goes or what happens to it.

  18. #18
    CoP Dynamis
    Join Date
    Dec 2005
    Posts
    235
    BG Level
    4
    FFXI Server
    Odin

    Re: Linking linkshell chat to our website

    Quote Originally Posted by Tubbers
    Wouldn't it be just as easy to use a LS mule char or something to port things the other way? IE from Website > In game chat?

    I can see some incredible uses for this.
    It works both ways. Game to web, web to game. Did you mean something else?

  19. #19

    Re: Linking linkshell chat to our website

    Quote Originally Posted by Koga
    Nice.

    Was working on a similar project with ajax... How did you create the remote device > in-game parse?
    I was able to code a parse of the logs and post to the remote device but doing the reverse is proving to be quite a challenge.
    To be more specific, you need to have a hook somewhere in the website that allows your program access to the data in the web chat. Then every time a new message arrives, write it to the chattext.script file so it will be pulled into the game, then rewrite a blank file after a couple seconds.

  20. #20
    Sea Torques
    Join Date
    Oct 2006
    Posts
    614
    BG Level
    5

    Re: Linking linkshell chat to our website

    Very nice good job!

+ Reply to Thread
Page 1 of 6 1 2 3 ... LastLast

Quick Reply Quick Reply

  • Decrease Size
    Increase Size
  • Remove Text Formatting
  • Insert Link Insert Image Insert Video
  • Wrap [QUOTE] tags around selected text
  • Insert NSFW Tag
  • Insert Spoiler Tag

Similar Threads

  1. ***WARNING*** Do not go to this website
    By Nexen in forum FFXI: Everything
    Replies: 371
    Last Post: 2009-10-17, 09:28