Results 1 to 6 of 6
  1. #1
    Bruce is offline Member
    Join Date
    Sep 2014
    Posts
    6
    Rep Power
    0

    Default How hard would it be to program this sheet into Java?

    First off I know very little if anything about Java but I am here to learn if there is someone willing to help teach me.
    I programmed the attached PDF using Adobe's Acroscript which is a variation of Javascript. The issue with this sheet is it is a little slow to calculate things as it has to think about every action it performs, which is why I am here. I'd like to know if I can program this sheet into Java and have it perform at a much quicker pace.

    For those that have Acrobat XI should be able to view the code I used by going into tools/forms/edit on the right side of the window in Acrobat. I am not sure if other PDF programs will allow one to view the code but your more than welcome to try. Please note that Adobe reader will allow you to view and enter data into the form but will not allow you to modify or view the code.
    This is a character generator sheet for a tabletop RPG game called HARP (High Adventure Role Playing).

    I hope this is possible.

    Ok that sucks.... I load up the file into the attachments popup window but when it is finished uploading the popup window says "page not found". The file size is only 2.8mb.

    Is there an alternate way to upload a file?

    Bruce
    Last edited by Bruce; 01-19-2015 at 03:43 AM. Reason: File upload

  2. #2
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: How hard would it be to program this sheet into Java?

    First, the "Page not found" error has nothing to do with the file size. It is the result of some odd characters in the message interfering with the anti-spam software. Second, 2.8mb is not small for some code to be reviewed on the forum. If the pdf format is causing the problem and you wrote the code then simply paste it into a text file and attach that. But if it is too large, folks will probably ignore it.

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

  3. #3
    Bruce is offline Member
    Join Date
    Sep 2014
    Posts
    6
    Rep Power
    0

    Default Re: How hard would it be to program this sheet into Java?

    Ok, then I am not sure how to post this PDF. The code is not written in a line by line format that can be listed as a single document. It has multiple instances of "document level" javascripts, which are kind of like "boxes" of code. Also there are form fields that have pieces of code in them that reference and are referenced by other code in the document.
    Well right now all I can do (if anyone is interested in helping me or even taking a look to see if this is possible in Java) is give a link to the file in my dropbox account.
    So if you or anyone else is interested, please let me know.

    Bruce

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    13

    Default Re: How hard would it be to program this sheet into Java?

    Rather than post code that most people here won't be familiar with, describe what the sheet does. Post a picture of the PDF to give a visual aid to what that will look like.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    Bruce is offline Member
    Join Date
    Sep 2014
    Posts
    6
    Rep Power
    0

    Default Re: How hard would it be to program this sheet into Java?

    I was wondering about differences in code and how much new stuff I will have to learn. I'll describe it first and see if you guys want more. If you have never played a table top RPG then this might be a little hard to understand.
    The PDF is currently 4 pages long with two sheets dedicated to developing the character, the other two sheets are the actual character sheets and the only two that will print (that's a setting in adobe). The PDF is a character generator for a table top role playing game called HARP. It has multiple code sets within the sheet itself with over a dozen document level scripts that can be quite lengthy in addition to code that is written in individual pull down boxes (for selecting particulars about the character like race or class/profession).
    Each selection or change in a field causes a change or an added option elsewhere (sometimes in multiple places).
    On this sheet you start off with a pull down list that asks you to choose a profession of which there are currently 9 choices. Once selected you would then have to click a commit button to add that choice to your character sheet. Once that is done there is another pull down list to select from your list of professions/classes (if you have more than one) to advance a level when the time comes. Making the choice in this pull down list changes the cost for the skills as all the professions have different costs for the skills (to clarify there are 10 skill categories with multiple skills each, a skill in a favored category costs 2 points whereas a non favored skill costs 4 dev points). Dev points can be used for things other than skills though. This sheet keeps track of what you use your points on be it skills, talents, increasing your stats, etc.
    Dev points are based on the 8 stats (Strength, Agility, Constitution, etc) that help define the character but there is a set minimum number of 50 (100 at first level). Once the total of those numbers derived from the 8 stats go above 50 it is reflected on the character sheet through the point totals for advancing a level.
    The 8 stats are defined by a number usually ranging from 40 to 100 (can go higher through level advancement), that number gives you a bonus, then there is a bonus from your race (or multiple races) that adds to that bonus, then there is the special bonus which is derived from other things.... it is basically a number input. The total bonuses from the stats are applied to the various skills on the sheet (two stats per skill)...... and it goes on from there though. That is what I think the biggest part of what needs to be done.

    So if you need the actual character sheet I can provide one, if not I will work on some snapshots.
    But how hard would the above be to code in java?

    Bruce
    Last edited by Bruce; 01-20-2015 at 05:59 AM.

  6. #6
    Bruce is offline Member
    Join Date
    Sep 2014
    Posts
    6
    Rep Power
    0

    Default Re: How hard would it be to program this sheet into Java?

    It will not let me upload the screenshots, I get the same error "page not found".

    Bruce

Similar Threads

  1. Replies: 5
    Last Post: 11-10-2014, 05:20 PM
  2. Java runtime logging to hard disk
    By dmna007 in forum Forum Lobby
    Replies: 5
    Last Post: 05-11-2012, 05:04 PM
  3. a really hard sorting program can you help ??
    By splash128 in forum New To Java
    Replies: 4
    Last Post: 10-19-2010, 03:48 PM
  4. Replies: 3
    Last Post: 09-24-2010, 09:53 PM
  5. Replies: 0
    Last Post: 08-02-2007, 01:31 PM

Posting Permissions

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