Any suggestions for creating a good codex?

Ive been making a calculator that will take certain armies from warhammer 40k and let the user build an army. Currently i have been trying to use a text file for each army such as this.
Eldar                        CostMinMax
     Addons
          Warlock             25  3  10 ~ Conceal 15 Destructor 10 Embolden 5 Enhance 15 | # Spiritseer 6 Singing_Spear 3 Jetbike 20 |
          Dire_Avenger_Exarch 12  1  1  ~ Two_Shuriken_Catapults 5 Diresword_and_Shuriken_Pistol 10 Power_Weapon_and_Shimmershield 15 | # Defend 15 Bladestorm 15 |
          Warlock_Jetbike     45  1  1  ~ Conceal 15 Destructor 10 Embolden 5 Enhance 15 | # Spiritseer 6 Singing_Spear 3 |
     Troops
          Guardians          8   10 20 ~ Bright_Lance 30 Missile_Launcher 20 Scatter_Laser 15 Shuriken_Cannon 5 ~ Starcannon 25 | # Warlock 25 |
          Dire_Avengers          12  5  10 # Dire_Avenger_Exarch 12 |
          Rangers               19  5  10 | //Pathfinders 5 per model
          Storm_Guardians         8   10 20 ~ 1_Flamer,_1_Fusion_Gun 12 2_Flamers 12 1_Flamer 6 2_Fusion_Gun 12 1_Fusion_Gun 6 | # Warlock 25 | //0 - 2 Flamers and/or Fusion Guns
          Guardian_Jetbike    22  3  12 # Warlock_Jetbike 45 |// 0 to 1/3 of the Jetbikes can have shuriken cannons
     HQ
          Autarch              70  1  1  ~ Swooping_Hawk_Wings 20 Warp_Jump_Generator 25 Eldar_Jetbike 30 | ~ Banshee_Mask 3 MandiBlasters 10 | ~ Power_Weapon 10 Scorpion_Chainsword 5 Laser_Lance 20 | ~ Avenger_Shuriken_Catapult 2 Death_Spinner 5 Fusion_Gun 10 Lasblaster 1 Reaper_Launcher 25 |
          Farseer              55  1  1  |
     Fast_Attack
          Swooping_Hawks          21  5  10 |
          Shining_Spears         35  3  5  |
          Warp_Spiders        22  5  10 |
          Vypers              45  1  3  |
     Heavy_Support
          Dark_Reapers        35  3  5  |
          War_Walkers         30  1  3  |
          Fire_Prism         115 1  1  |
          Wave_Serpent         90  1  1  |
          Support_Weapons         90  1  3  |
          Wraithlord         90  1  1  |
          Falcon              115 1  1  |
     Elites
          Striking_Scorpions  16  5  10 |
          Fire_Dragons         16  5  10 |
          Howling_Banshees    16  5  10 |
          Wraithguard         16  3  10 # Warlock 25 |
          Harlequin           16  5  10 |
{code}In my program I take this txt file and use a scanner to create sorted map, sets and other things that i use to create radio buttons and check boxes for the different options/addons for a squad. Such as:
[http://i935.photobucket.com/albums/ad200/ShottySnipez/EldarOptions.jpg?t=1277930302]
In the text file the ~ ... | creates a radio button group and a #....| creates a checkbox group which all works fine. The problem I am having is with the more complicated options/addons such as having a choice between 0-n number of object 1 and/or object 2, having 0-4 powers out of a 7 checkbox power group, or having 0-n special units added to the squad that all are the same but all can have different powers/addons.
My question is, is there a better way to stroe this codex information instead of the textfile or any other way i should go about doing this to make it work. Any advice would be awesome thank you.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Celletti wrote:
In the text file the ~ ... | creates a radio button group and a #....| creates a checkbox group which all works fine. The problem I am having is with the more complicated options/addons such as having a choice between 0-n number of object 1 and/or object 2, having 0-4 powers out of a 7 checkbox power group, or having 0-n special units added to the squad that all are the same but all can have different powers/addons. I suspect you need to write a data model for the information you want to capture. Seems like you've made a pretty good start with your various types and capabilities, now you just need to extend that to your more esoteric stuff.
I'd also try to think about it a bit more generally, rather than applying it to a specific Swing component. For example:
A Radio button is a "one of many" choice (ie, a "Selector"), whereas a Checkbox is a "0 or many of many" (possibly with limits). If you think about it this way, you leave the decision of how to represent them until later on, which is usually good practise.
If you create a good model, you'll also be better prepared if you later decide to store these things in a database.
Winston

Similar Messages

  • Any suggestions for creating  u201CCustom Measuresu201D ......

    Hi SAP BPC guys,
    could  give me   Any suggestions for creating  u201CCustom Measuresu201D for
    §   Average to Daily
    §   Average to Monthly
    Thanks  & Regards,

    Celletti wrote:
    In the text file the ~ ... | creates a radio button group and a #....| creates a checkbox group which all works fine. The problem I am having is with the more complicated options/addons such as having a choice between 0-n number of object 1 and/or object 2, having 0-4 powers out of a 7 checkbox power group, or having 0-n special units added to the squad that all are the same but all can have different powers/addons. I suspect you need to write a data model for the information you want to capture. Seems like you've made a pretty good start with your various types and capabilities, now you just need to extend that to your more esoteric stuff.
    I'd also try to think about it a bit more generally, rather than applying it to a specific Swing component. For example:
    A Radio button is a "one of many" choice (ie, a "Selector"), whereas a Checkbox is a "0 or many of many" (possibly with limits). If you think about it this way, you leave the decision of how to represent them until later on, which is usually good practise.
    If you create a good model, you'll also be better prepared if you later decide to store these things in a database.
    Winston

  • Any Suggestions for CGI Script for Web Slide Slow?

    Do you have any suggestions for creating a slideshow for my web site, 6 same-size jpgs that rotate automatically?
    I think I prefer a cgi script. However, I've tried two that don't work on Firefox or Safari. One developer tells me that he can see the rotating photos.
    I'm also open to software to create this. However, I'd prefer to use html code.
    Of course, it must work cross platform.
    Any suggestions?
    G5 Quad; Mini Mac; PowerBook G3; iPods   Mac OS X (10.4.8)   Using Dreamweaver 8

    Oh, what a beautiful baby! Is he/she yours?
    She is mine. At least that's what the Mrs. tells me!
    When you say gif, I am assuming that you mean the
    format really must be gif and not jpg. Is that
    correct?
    Yes, the file is a GIF file. It's actually an animated GIF file, meaning that the images that you see are all frames of animation in a single GIF file. There are a lot of apps out there that can create animated GIFs. I happen to use Adobe ImageReady because that is what is on the hard drive.
    Can you give me a hint about the dithering issue? Do
    I dither or not dither, that is the question.
    This is the major downside of the GIF format. It is a really old format...from back in the CompuServe bulletin board days...maybe older. Anyways, it is my understanding that GIFs can only hold information for 256 colors....any 256 colors, but no more and no less. So now in the days of "millions of colors" jpegs, you can imagine that a 256 color palette is limiting. But if the colors of your images are sufficiently close, its possible that 256 colors makes for perfectly acceptable images across all images. This is the one variable of converting images to GIF that can make it or break it for you. If your image has a pretty broad tonal range...like fleshtones or any other gradient...then 256 colors is going to represent things poorly. Then you will get dithering artifacts which is like averaging errors...colors are close...as close as possible...but not close enough to make a smooth gradation. Anyways, that's my layperson's understanding.
    But for some images, it looks just fine.

  • Any suggestions for good free web hosting service for my IWeb page, other than MObileMe

    Any suggestions for good free web hosting service for my IWeb page, other than MobileMe?

    MobileMe is not free.
    Search : free webhosting
    You can narrow the results by being more specific by adding town, province or country.
    You can also start by checking out your own ISP.
    Or be free as in here : www.000webhost.com
    Here's mine : http://dailynews.webege.com/

  • Need suggestion for creating 'whispy smoke'

    Hi All,
    I'm trying to figure out a way to create a cartoonish looking whispy smoke. I've played with Trapcode Particular and that creates some very realistic looking smoke, probably too realistic.  I've played with CC Particle World, and also tried painting the smoke and then animated it on with a mask and a stroke set to reveal the original based on the mask.  Nothing really gets close to what I'm looking for.  Here's a sample of the client's original art:
    Any suggestions for how to achieve this?
    Thanks,
    CJ

    Trapcode 3D Stroke with taper enabled.
    Mylenium

  • BIA Test: Suggestion for creating enormousTest Data for Infocubes

    Hi,
    I need to create some enormous amount of data for infocube in order to test BIA.
    I don't think my basis team will allow me to load data from Production to Sandbox and moreover production has less than 250 millions records.
    Any suggestion for 250 million records?

    Hello,
    Just an idea. If you can load a minimum of data for your cube then it is easy.
    You just have to generate for your cube for instance a datasource and then create some update rules to loop on your data.
    a. generate export datasource
    b. map it to your infosource
    c. define some update rules to ensuere your data will be different. For example in the start routine.
    Hope it helps.
    Patrice

  • Any suggestions for improving my efficiency?

    These are the two methods I've come up with to use what I have for making movies. One is for DVDs. The other is for making QuickTime MOV files for CDs. This is the process I have to use because we don't yet have our digital video camera that is firewire compatible with Final Cut.
    For DVDs that will play in DVD players or media software on your computer:
    1. I take the Video_TS folder and run it through DVD Imager (free, macupdate.com) which converts it into an IMG file.
    2. I use the Apple Disk Utility (part of OS X) and burn the IMG file to a DVD.
    Simple enough.
    Making our recorded footage editable in Final Cut and then exporting as a QuickTime movie is a little more complicated. There may be a simpler way to do all this (like get a fire-wire FC-compatible camera I can capture footage from) but this is the process I finally got to work:
    1. In the Video_TS folder are two VOB files. The larger one is the one that actually has your video on it. I use MPEG Streamclip (free, squared5.com) to remove the timebreaks (otherwise all you get is the poster frame) and convert it to a Quicktime MOV file. For settings, I just use Apple Video, 720x480 NTSC, and 30 fps. You need to buy the Apple Quicktime MPEG-2 Playback Component ($20, apple.com) for this free software to work.
    2. Import the MOV file into Final Cut (I use Express which is $300 from apple.com) and do your editing and other yumminess. You'll need to render it first.
    3. Export as an MOV file ... there's no .mov extension and the Info says it's a Final Cut Express Movie file, not a QT MOV which makes me nervous so I I open it in QuickTime Pro ($30, apple.com) and export it using the Movie to Quicktime Movie setting.
    4. Then I burn my Quicktime movies to a CD.
    Any suggestions for improving my efficiency?

    "For DVDs that will play in DVD players..."
    If what you want is just to make copies of a DVD you burned yourself (eg using iDVD or your DVD camcorder) there is a simpler way: just create an image of the DVD on your desktop using Disk Utility, and then burn it using Disk Utility.
    You need to go into the process of copying the VIDEO_TS folder only if you want to make changes to it. For example you might need myDVDEdit, a very powerful free editor of the DVD structure (to change the menu button behaviour, or so). Or maybe if the image is of a different size, from a small DVD to a large one.
    Piero

  • TS3694 any suggestions for fixing "unknown error 3194"?

    any suggestions for fixing "unknown error 3194"?
    i updated the phone through itunes but got the message above.  I am trying to recover my contact information, which is most important to me (all business contacts are on this phone).  The phone will not turn on.  I have tried resetting the phone with the home/power button, the phone is fully charged as well.  Any ideas will be greatly appreciated.
    thank you!

    The 3194 update/restore error usually means the computer can't connect to gs.apple.com.
    See this Apple doc -> iTunes: Specific update-and-restore error messages and advanced troubleshooting
    Unable to contact the iOS software update server gs.apple.com
    Error 1004, 1013, 1638, 3194: These errors may be the result of the connection to gs.apple.com being redirected or blocked. Follow these steps to resolve these errors:
    Install the latest version of iTunes.
    Check security software. Ensure that communication to gs.apple.com is allowed. Follow this article for assistance with security software. iTunes for Windows: Troubleshooting security software issues.
    Check the hosts file. The restore will fail if there is an active entry to redirect gs.apple.com. Follow iTunes: Advanced iTunes Store troubleshooting to edit the hosts file or revert to a default hosts file. See section "Blocked by configuration: (Mac OS X/Windows) > Rebuild network information".
    Try to restore from another known-good computer and network.
    If the errors persist on another computer, the device may need service.
    If you just want to get the contacts back, and they are on the computer, you can just sync them from iTunes again.

  • Any Suggestions for Bus/Aux, Sub/Stems Organization, Naming?

    Hello Fellow Macers!
    Using Logic Pro and learning step by step using Logic Pro 9 Manual. When it comes time to mix your first song (see pg 758: "Understanding The Basic Mixing Stages") under "Stage 1 Making Preparations" the manual suggests that you define some logical channel strip groups, grouping tracks, for example, roughly by type (drums, guitars, keyboards, eg.) in order to link their parameters so that you can adjust the whole group at once. My question is what is the best layout or organization to do this. Is it to select all your drums, create a group "Aux" Channel strip, name this group "Drums, and then assign all sends of this to  Bus 1?
    If that makes sense, then does it also make sense so set up a standard convention for Bus assignments for those Auxillary Channel Stips that you create, like below....
    Bus 1 > Drums
    Bus 2 > Percussion
    Bus 3 > Bass
    Bus 4 > Guitar
    Bus 5 > Keyboards
    Bus 6 > Orchestral
    Bus 7 > Backup Vocals
    Bus 8 > Wet
    Bus 9 > Dry
    etc, etc....while creating other Groups and assigning Buses for those...e.g.
    Bus 20 > Strings
    Bus 21 > Horns
    While perhaps also using Buses 30-40 for grouping EFX, eg., ....
    Bus 30 > Tape Delay
    Bus 31 > Instrument Reverb
    Bus 32 > Snare Reverb
    Also, would 20-40 above be considered Stems, or submixes, or
    FYI, This article, together with going through the manual, got me thinking on this subject:
    http://logicblog.info/logic-pro-blog/2011/12/03/tips-on-organizing-and-bouncing- aux-buses-in-logic-pro.html
    Also, any suggestions for a color convention to help organization, easy identification?
    Hope this makes sense and I appologize in advance if it doesn't. Feel free to set me straight, ask for clarification, etc.
    Thanks!!
    Erniesfo

    looks like your database is in a deadlock situation. check you logs and try finding out where the deadlock is occuring.
    regards
    shyam

  • Any suggestions for an old-timer dually seeker?

    I work on my old (late '06) 1.83 GHz Intel iMac 17" doing some graphic design (advanced amateur) for non-profits w/CS2. As my skill level grows, so does my need for a second larger monitor. I'm looking for advice on purchasing a 23/24" monitor with the highest resolution this machine can support. Of course, wonder of wonders, there are scant resources ($$$). Any suggestions for this old timer with the failing eyesight?
    Thanks
    Larry

    Steer clear of the new cinema display, or any glossy one for that matter.
    A good H-IPS panel monitor is what you need. I suggest http://www.newegg.com/Product/Product.aspx?Item=N82E16824176104 it needs to be calibrated out of the box, but when it is, it beats anything in that price range hands down. H-IPS, anti-glare, height adjustment, swivel, and for under 600.

  • Any suggestions for my Athlon 64 FX 51

    I'm pretty new to overclocking but not computer stupid.  So my question is if I have a MSI K8T master 2 Mobo and a Athlon 64 FX 51 processor and I'm using Core center pro to boost my FBS, how much can I overclock?  I had it up to 2310mhz and things seemed fine but how much is too much.  Also does anyone have any suggestions:  am I using good overclocking software,  Is there anything I should watch out for.  Any advice would be appreciated.
                                     lucidsoul5

    Thanks for the link - I obviously can't use the MSI search engine properly!!!  
    Yeah, the earlier Bartons were unlockable and the 2500+ specifically is similar to the P4 2.4c in that it seems to have a lot of overclocking headroom, I suspect for similar reasons - they were both the first releases from a new die design. So 200 x 11 is not unheard of (slightly better than 3000+ performance).
    But take solace in the fact that your chip is 64 bit architecture, 128 bit memory bus, 1024Kb L2 Cache, and HyperTransport bus enabled, so you have the potential of doing twice as much per clock cycle as our 32 bit CPUs. While I may get some arguments from the P4 3.2 EE users, I reckon you've got the fastest CPU currently available and a decent 64-bit OS will make it fly (wait for the Linux crew to chip in here!!!).
    Looking at your specs, your memory is probably the limiting factor at the moment (DDR333 runing at DDR408 not likely to get much more), but as yet I do not think the mobos are particularly optimised for overclocking either. All the reports I've read about suggest a 5% overclock is the absolute best achievable, and many just won't overclock at all. The absolute best I've read is 210 x 12, but the system wasn't stable enough to benchmark, so personally I don't think it counts!!!
    I really dont know if ClockGen will work for you. It looks to me that there is only a standard Athlon64 version, not a FX version.
    Maybe someone here has experience of Opteron overclocking and can be more helpful.

  • Does anyone have any suggestions for Ad blocking? I'm getting a lot of pop up ads while using Facebook from Safari.

           I'm getting a lot of pop up ads. mostly while using  Facebook. I'm running Safari on a Macbook Pro running Yosemite. Does anyone have any suggestions for an Ad blocker. I don't see anything in the App store.
          I can't swear to it but I don't recall this being a problem pre-Yosemite. I could be wrong. I haven't been real active on Facebook until recently. I see some third party apps out there but am alway wary of non approved software.
         Thanks
         Ron

    You may have installed the "VSearch" trojan. Remove it as follows.
    Malware is always changing to get around the defenses against it. These instructions are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data before proceeding.
    Step 1
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot," "Trovi," or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Reset the home page and default search engine in all the browsers, if it was changed.
    Step 2
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "com.vsearch.agent.plist" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    The problem may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the Internet criminal behind VSearch has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing has not done so, even though it's aware of the problem. This failure of oversight has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

  • I just received a new macbook pro. I am looking for a usb3 external storage 500 GB drive.  Some manufacturers of drives aren't for sure their drive will work with the new lion system. Does anybody have any suggestions for drives that will workw

    I just received a new macbook pro. I am looking for a usb3 external storage 500 GB drive.  Some manufacturers of drives aren't for sure their drive will work with the new  system. Does anybody have any suggestions for drives that will workw

    There seems to be a problem, just now, with the USB 3 ports on the new MBP's supporting eternal USB 3 drives. Some people have no luck at all - can't even recognize the drive - and some are reporting USB 2 speeds (those who drives are recognized). I'd call a dealer such as LaCie or OWC to see if they have USB 3 drives that actually work with MBP's with USB 3 ports. You may have to wait for a software/firmware update.
    Clinton

  • I continue to receive message that "We could not complete your iTunes Store request. An unknown error occurred (4002). Please try again later." This has been happening every time iTunes Match runs in background. Any suggestions for a cure?

    I continue to receive message that "We could not complete your iTunes Store request. An unknown error occurred (4002). Please try again later." This has been happening every time iTunes Match runs in background. Any suggestions for a cure?

    Found a potential solution here:
    https://discussions.apple.com/thread/4332757
    Gsleeroy
    Re: error 4002 in itunes match do you have a solution? 
    Sep 23, 2012 10:08 AM (in response to matracaelcan)
    Hi All,
    I had this problem today myself, and was frustrated repeatedly by the '4002' error.
    I have literally just fixed the issue by doing the following steps:
    1: Go to the 'Store' tab and select 'Turn Off iTunes Match'
    2: Return to the 'Store' tab and select 'Update Genius'
    3: Wait for this to complete succesfully, the return to the 'Store' tab once more and select 'Turn On iTunes Match'.
    4: iTunes Match will now go through the motions and should succeed!
    I hope this helps

  • Any suggestion for a damaged logic board rather than buy a new computer

    Any suggestions for a damaged logic board rather than buying a new computer

    The most frequent RAM vendor recommendations are Crucial.com and MacSales.com (OWC).
    With respect the logic board, you could ask Apple about a "Fixed Price Repair" which will generally repair everything that is wrong with a Mac.
    Message was edited by: BobHarris

Maybe you are looking for