Results 1 to 8 of 8

Thread: How to convert a simba file to a .jar?

  1. #1
    Join Date
    Feb 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default How to convert a simba file to a .jar?

    I was just wondering if any knows a easy way to convert a .simba file to a .jar? Thanks.

  2. #2
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    You can't.

    They're different languages.

  3. #3
    Join Date
    Feb 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Any way you can port it over?

  4. #4
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by flabman75 View Post
    Any way you can port it over?
    Besides a complete rewrite, probably not.

    Code:
    write("Hello world");
    System.out.println("Hello World");
    Doesn't exactly match.

  5. #5
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    The only reason you'd want to do this is if you were trying to encrypt, obfuscate, or otherwise close-source your script.

    This is frowned upon at SRL, everything here is free and open-source.

    To answer your question: no, PascalScript and Java are entirely different languages.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  6. #6
    Join Date
    Jan 2012
    Location
    127.0.0.1
    Posts
    702
    Mentioned
    11 Post(s)
    Quoted
    76 Post(s)

    Default

    well, short answer no.
    Long answer Yes and very buggy, you can but it requires a lot of knowledge in assembly as well as both languages, involves extensive knowledge of how the 2 languages compile to assembly and a complex process of compiling and de-compiling the code into java, or making a special compiler which can automatically interpret convert pascal script and the dependencies and finally compiling it into a .jar file. (correct me if I am wrong) I have never tried this myself, but theoretically it is possible.

    For all that effort, it would simply be easier to learn how to code the basics in both languages and just copy the script over.
    Once you understand the script logic you can pretty much copy the script over providing you change the syntax and the dependent functions.

  7. #7
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    start -> control panel -> folder options, click the view tab. uncheck 'hide extensions for known file types'
    go to the .simba file, right click -> rename, type name as .jar.

    there. its converted to a .jar. it wont run or anything because it doesnt have the structure that a .jar would, but hey. its a jar.

  8. #8
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Quote Originally Posted by Turpinator View Post
    start -> control panel -> folder options, click the view tab. uncheck 'hide extensions for known file types'
    go to the .simba file, right click -> rename, type name as .jar.

    there. its converted to a .jar. it wont run or anything because it doesnt have the structure that a .jar would, but hey. its a jar.
    You must be somekind of wizard

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •