Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Savage Worlds
Register FAQ Community Today's Posts Search

Notices

Reply
 
Thread Tools Display Modes
Mathias
Senior Member
Lone Wolf Staff
 
Join Date: May 2005
Posts: 13,213

Old February 4th, 2014, 07:50 AM
#resmax[resAdvance] is calculated in a script on the resAdvance pick itself, at Setup/2000.

You should have a script at setup/2010 that re-calculates the XP/advances, and then sets #resmax[resAdvances] = the number it calculated. Having to add to both resLeft and resMax in a script is a kludge. Even if you're not fixing it in your own code, I'd appreciate it if you could fix it in the code examples thread - if you're posting examples for everyone to learn from, those examples should be well-constructed examples.
Mathias is offline   #21 Reply With Quote
SeeleyOne
Senior Member
 
Join Date: Nov 2009
Posts: 891

Old February 4th, 2014, 08:08 AM
Thanks. I was thinking about the inelegance of the fix. I hate writing kludgey code. It works, but your way is better. I will fix it this evening.

Evil wins because good rolls poorly .... or the players are not paying enough attention to the game.
SeeleyOne is offline   #22 Reply With Quote
SeeleyOne
Senior Member
 
Join Date: Nov 2009
Posts: 891

Old February 4th, 2014, 03:13 PM
I fixed it in the Common Code thread. It works great and is cleaner. The syntax is generally not so much the issue, but figuring out the timing is what I need to learn now. When I started messing with Hero Lab in the past I had no coding experience. While that is not really needed (so long as you can find an example to copy from elsewhere), now that I have learned Java and C++, I find that it makes a lot more sense overall.

Evil wins because good rolls poorly .... or the players are not paying enough attention to the game.
SeeleyOne is offline   #23 Reply With Quote
zarlor
Senior Member
 
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819

Old February 4th, 2014, 04:47 PM
If it helps any there is some documentation on Timing if you go to the Help file in the Editor. Of course that does not necessarily tell you the exact timing of some stuff, but some of that can be found in the various source files.

Lenny Zimmermann
Metairie, LA, USA

Data files authored (please let me know if you see any issues with any of these if you have/use them):
Official (In the downloader)
50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome
Coming Eventually
Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me)
zarlor is offline   #24 Reply With Quote
SeeleyOne
Senior Member
 
Join Date: Nov 2009
Posts: 891

Old February 4th, 2014, 05:19 PM
I have found the Develop -> Floating Info Windows -> Show Task List (either Active Hero or Full List) to be helpful. I have found the help files to not be as helpful as I would have liked. If they were more extensive and up to date they would be far more helpful. But there is relatively little demand. It seems that most people think that they need to be master programmers to learn how to use the editor.

Evil wins because good rolls poorly .... or the players are not paying enough attention to the game.
SeeleyOne is offline   #25 Reply With Quote
zarlor
Senior Member
 
Join Date: Nov 2010
Location: Metairie, LA, USA
Posts: 1,819

Old February 5th, 2014, 08:13 AM
BTW, thanks for testing and getting all that worked out. Hopefully if we do see a decision to give us something like an entry in the Editor to modify this your work will make it easier to implement, but a definite thanks for adding it to the Common Code thread. I think that will be really helpful since I've seen it mentioned a few different times here by different people so hopefully that will be really useful for them.

Lenny Zimmermann
Metairie, LA, USA

Data files authored (please let me know if you see any issues with any of these if you have/use them):
Official (In the downloader)
50 Fathoms, Deadlands: Hell On Earth, Deadlands: Noir, East Texas University, Necessary Evil (requires Super Powers Companion), Pirates of the Spanish Main, Space 1889 (original file by Erich), Tour of Darkness, Weird War II, Weird Wars: Rome
Coming Eventually
Evernight (LWD has completed their review but I have some fixes to make first... although Pinnacle mentioned this might get an overhaul to SWADE so I may just wait for that first. If you just HAVE to have this now, though, just PM me)
zarlor is offline   #26 Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:11 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.