Small Coding Questions

123457»

Comments

  • XaiXai Member, Bot Posts: 2
    I'm not sure this is a Small coding question. Perhaps it's something no one even knows. But here it goes. 

    So I want to be able to log on and do random things. The catch is I live off the grid. Yes that means I make my own power. Which isn't always easy, or doesn't always charge my laptop all the time. So I use my cell phone most other times. 

    Now I've gone through many android mud clients and finally found one that I can code a decent system with. Get some hunting done, defenses that kind of thing. Maybe even start combat coding. Who knows. Problem is. I'm use to coding in mudlet. Now I use TT++ on my phone, or Tintin, I'm not sure where to begin... Well actually I am very sure where to begin. Suppose that was the wrong statement.

    Let's try this again. 

    I've checked the manual. I've read some forum stuff. But I'm stuck at trying to call gmcp things, and knowing how to 'save' my sessions so I don't have to constantly start over or keep tt++ open all the time.

    I'm hoping someone can help me here. Or perhaps point me to an even better and easier mud client for Android. 
  • ZailaZaila Pacific TimeMember Posts: 437 ✭✭✭✭
    @xai

    Depending on how much you're willing to learn writing in a new language, I use the webclient on my phone and find that extremely useful. Primarily because everything you do on the webclient on a computer saves to your character and no matter what device you open it up with via a browser, you have all your settings right there. All your code: right there.

    Another perk to this is the fact that it's widespread enough that there are some basic functions like an auto-fisher and auto-basher, etc. already worked up that you can just import from the forum here without having to code it all in if you don't want to.

    I honestly haven't found a phone client I like better.
  • AloliAloli Member Posts: 147 ✭✭✭
    Hello Xai!

    Blowtorch is a good Android app. I've tried a few on Android but this one is absolutely the easiest to work with and is intuitive.

    I've also tried MUDRammer on iPhone, that's the best one if you ever switch!

    I would encourage you to join the Frontline clan and look at a file Daren wrote a while ago called Phonetolia (CLHELP PHONETOLIA). He gives a good lesson on how to set up basic triggers and targets.

    In the game itself, you can also alias that will stay on the game server, usable from any platform! (HELP ALIAS)

    Personally, if I'm on my phone I find it easier to use a client app than the Nexus web client because scrolling seems to be such a pain on touch screens.

    I used to love using TT++, it's so simple and beautiful to make and save everything in its own text files but then a few years back someone introduced me to Zmud, then Cmud, then Mudlet!

    If you need any help with specific coding questions on these phones, just reach out, you'll find a lot of support and Aetolia has a lot of nice code monkeys.
  • MoxieMoxie USAMember Posts: 55 ✭✭✭
    edited January 8
    Hello, Xai! It's nice to meet fellow cellphone players and definitely understand the pain of trying to do -anything- on such a small screen. I spend anywhere from 12 to 14 hours at work and cannot install mudlet due to security issues. That leaves me with either weekends or very late at night when I can use a computer. Seeing as most of the action is during my work hours, I have just been using the trigger Phoe mentioned and Blowtorch (Android) with a sht ton of aliases. Unfortunately, blowtorch has a habit of deleting all of your settings randomly so it's good to keep it on a notepad. I don't use nexus because on my android phone it refuses to show anything I am typing, I am not certain if this is a bug or not.

    Side note: I have heard about TT++ but it's a little outside of my skillset to try and set up on my phone.If it doesn't randomly delete all of my settings/triggers/ aliases like blowtorch does, I would be interested learning how to use it.
    (Tells): In a deep, gravelly voice, Iesid imparts to you, "( goob isn't here so I'll say it: BUY ANOTHER ONE YA RICH MUTHAFKRR )"
    (Tells): In a deep, gravelly voice, Iesid imparts to you, "( said in Chapelle's Rick James voice )"
  • XeniaXenia Member Posts: 1,023 ✭✭✭✭✭
    Something I've noticed for some phone users (unsure if this is a solution that would work for you two, @Moxie and @Xai) is at home they leave the computer on and running and access the computer through proxy on their phones.

    Something you two might consider doing. I know @Toz is someone who uses this solution to play from work.

    Moxie
  • TozToz Member Posts: 2,491 ✭✭✭✭✭
    I leave my laptop or tower on with VNC installed, and then use VNC Viewer on my phone to remote in that way. As long as I have a keyboard (bluetooth) hooked up, it's tolerable (if the screen is tiny), and it lets me access my system or run my basher. Without a keyboard though you won't have the nice fancy autocorrect of your phone keyboard and I typo like crazy so I usually use Blowtorch.

    Blowtorch likes to delete everything, but one thing I discovered is it deletes my CONNECTIONS, but not the DATA- like I can just make a new profile named the exact same thing and it loads all my settings, somehow, from before. Baffling, but I'm not gonna worry too hard about it if it works!

    Arbre-Today at 7:27 PM

    You're a vindictive lil unicorn
    ---------------------------

    Lartus-Today at 7:16 PM

    oh wait, toz is famous
    ---------------------------

    Karhast-Today at 7:01 PM

    You're a singularity of unicorns awfulness Toz
    MoxieAloli
  • StineStine Member, Bot Posts: 73 ✭✭✭
    I'm playing around with GMCP and the communications module and my current problem is in trying to parse the useful data out of the below example:

    "[0;1;36m(Web): You say, "Okay that is slightly but not really helpful."[0;37m"

    "[0;37m(MSGA: Sundaren): You say, "Hmm."[0;37m"

    There are actually arrows there from the sides, like so:


    From what I've found, they're ANSI color codes. Is there an easy way to parse them out and keep the rest? I tried a few variations of gsub but couldn't really get anything useful.



  • LaniraLanira Member Posts: 71 ✭✭✭
    edited March 24
    Try subbing out this pattern: \033%[.-m

    \033 is the escape character that is being shown as the left arrow. Followed by a bracket which you escape with % in the pattern because it's a special character. Then any character zero or many times, as few as possible. And ending with an m which ansi sequences do.
  • StineStine Member, Bot Posts: 73 ✭✭✭
    @lanira
    text2:gsub("\033%[.-m", "") < Something like that? I have to imagine it's wrong because the \ is escaping out the 0, but I'm not sure how else I would sub it out. Thanks in advance.

    Eliadon had similar suggestions but using the \27 for the ASCII variant.

    I also asked somewhere else and they suggested using \x1b.

    Suffices to say I'm a little out of my element but still interested if you have any ideas.
  • LaniraLanira Member Posts: 71 ✭✭✭
    edited March 24
    Those are just different ways of representing the escape character. Decimal, octal, and hex. I thought that lua used the \nnn for octal. But \x1b should definitely work, the x specifies it's the hex representation. If you look here www.asciitable.com you can see that 27, 1b, and 33, are all listed next to the esc character.
    So, yes, use \x1b instead of \033 to be sure.
  • NovaNova Member Posts: 5
    Hi! I am making myself a little basher to make things a bit more manageable and I am stumped on an event to use to fire the script that I use to populate my available target list. I tried using gmcp.Room.Info.num since I knew (suspect?) that the value will only change if I move rooms, but that was to no avail. Does anyone else have any experience using registered event handlers to fire stuff when moving?
123457»
Sign In or Register to comment.