Steve Jackson Games - Site Navigation
Home General Info Follow Us Search Illuminator Store Forums What's New Other Games Ogre GURPS Munchkin Our Games: Home

Go Back   Steve Jackson Games Forums > Roleplaying > GURPS

Reply
 
Thread Tools Display Modes
Old 10-05-2011, 07:33 PM   #11
ssveter
 
ssveter's Avatar
 
Join Date: Jun 2011
Location: Richmond, VA
Default Re: [MH] Tool for calculating Ritual Path Magic costs

Is there an offline version of this??
ssveter is offline   Reply With Quote
Old 10-05-2011, 07:46 PM   #12
ClayDowling
 
ClayDowling's Avatar
 
Join Date: Jul 2007
Location: Ann Arbor, MI
Default Re: [MH] Tool for calculating Ritual Path Magic costs

Right click -> Save As

It's all javascript, doesn't require any server resources.
__________________
Online Campaign Planning
ClayDowling is offline   Reply With Quote
Old 10-05-2011, 08:18 PM   #13
ssveter
 
ssveter's Avatar
 
Join Date: Jun 2011
Location: Richmond, VA
Default Re: [MH] Tool for calculating Ritual Path Magic costs

Tried file:save as:complete webpage.

When I bring it back up in IE9 I get the header and background only.
ssveter is offline   Reply With Quote
Old 10-06-2011, 05:40 AM   #14
Sunrunners_Fire
 
Join Date: Mar 2010
Default Re: [MH] Tool for calculating Ritual Path Magic costs

Quote:
Originally Posted by ssveter View Post
Tried file:save as:complete webpage.

When I bring it back up in IE9 I get the header and background only.
PageSource:
Code:
<!doctype html>
<html manifest="ritualdesigner/mh.manifest">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <link type="text/css" rel="stylesheet" href="RitualDesigner.css">
    <title>GURPS Monster Hunters Utilities</title>
    
    <!--                                           -->
    <!-- This script loads your compiled module.   -->
    <!-- If you add any GWT meta tags, they must   -->
    <!-- be added before this line.                -->
    <!--                                           -->
    <script type="text/javascript" language="javascript" src="ritualdesigner/ritualdesigner.nocache.js"></script>
  </head>

  <body>

    <!-- OPTIONAL: include this if you want history support -->
    <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
    
    <!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
    <noscript>
      <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
        Your web browser must have JavaScript enabled
        in order for this application to display correctly.
      </div>
    </noscript>

  </body>
</html>
... it doesn't appear to save the ritualdesigner/ritualdesigner.nocache.js locally when you save the page itself. Try manually grabbing that .js and placing it in the proper relative directories on your local machine? Might work.

(EDIT)http://gurps-monsterhunters.appspot....ner.nocache.js ... gives:
Code:
function ritualdesigner(){var O='',vb='" for "gwt:onLoadErrorFn"',tb='" for "gwt:onPropertyErrorFn"',hb='"><\/script>',Y='#',Vb='.cache.html',$='/',Ob='30E7A50C2CAE9A9674E6D72645D4E96E',Pb='42E479F29754990760EDA9F668EB8850',Qb='48C2A19C88BF453180B2BB5AC529379A',Rb='839E2A36A937F59AE3896E08D23604BD',Ub=':',nb='::',bc='<script defer="defer">ritualdesigner.onInjectionDone(\'ritualdesigner\')<\/script>',gb='<script id="',qb='=',Z='?',Sb='BD0B8EF99B9CBA9CD633801F652FBE41',sb='Bad handler "',ac='DOMContentLoaded',Tb='E0A1E5E250D1D36D54F09C2F800F27FB',ib='SCRIPT',fb='__gwt_marker_ritualdesigner',jb='base',bb='baseUrl',S='begin',R='bootstrap',ab='clear.cache.gif',pb='content',X='end',Ib='gecko',Jb='gecko1_8',T='gwt.codesvr=',U='gwt.hosted=',V='gwt.hybrid',Wb='gwt/standard/standard.css',ub='gwt:onLoadErrorFn',rb='gwt:onPropertyErrorFn',ob='gwt:property',_b='head',Mb='hosted.html?ritualdesigner',$b='href',Hb='ie6',Gb='ie8',Fb='ie9',wb='iframe',_='img',xb="javascript:''",Xb='link',Lb='loadExternalRefs',kb='meta',zb='moduleRequested',W='moduleStartup',Eb='msie',lb='name',Bb='opera',yb='position:absolute;width:0;height:0;border:none',Yb='rel',P='ritualdesigner',db='ritualdesigner.nocache.js',mb='ritualdesigner::',Db='safari',cb='script',Nb='selectingPermutation',Q='startup',Zb='stylesheet',eb='undefined',Kb='unknown',Ab='user.agent',Cb='webkit';var l=window,m=document,n=l.__gwtStatsEvent?function(a){return l.__gwtStatsEvent(a)}:null,o=l.__gwtStatsSessionId?l.__gwtStatsSessionId:null,p,q,r,s=O,t={},u=[],v=[],w=[],x=0,y,z;n&&n({moduleName:P,sessionId:o,subSystem:Q,evtGroup:R,millis:(new Date).getTime(),type:S});if(!l.__gwt_stylesLoaded){l.__gwt_stylesLoaded={}}if(!l.__gwt_scriptsLoaded){l.__gwt_scriptsLoaded={}}function A(){var b=false;try{var c=l.location.search;return (c.indexOf(T)!=-1||(c.indexOf(U)!=-1||l.external&&l.external.gwtOnLoad))&&c.indexOf(V)==-1}catch(a){}A=function(){return b};return b}
function B(){if(p&&q){var b=m.getElementById(P);var c=b.contentWindow;if(A()){c.__gwt_getProperty=function(a){return G(a)}}ritualdesigner=null;c.gwtOnLoad(y,P,s,x);n&&n({moduleName:P,sessionId:o,subSystem:Q,evtGroup:W,millis:(new Date).getTime(),type:X})}}
function C(){function e(a){var b=a.lastIndexOf(Y);if(b==-1){b=a.length}var c=a.indexOf(Z);if(c==-1){c=a.length}var d=a.lastIndexOf($,Math.min(c,b));return d>=0?a.substring(0,d+1):O}
function f(a){if(a.match(/^\w+:\/\//)){}else{var b=m.createElement(_);b.src=a+ab;a=e(b.src)}return a}
function g(){var a=E(bb);if(a!=null){return a}return O}
function h(){var a=m.getElementsByTagName(cb);for(var b=0;b<a.length;++b){if(a[b].src.indexOf(db)!=-1){return e(a[b].src)}}return O}
function i(){var a;if(typeof isBodyLoaded==eb||!isBodyLoaded()){var b=fb;var c;m.write(gb+b+hb);c=m.getElementById(b);a=c&&c.previousSibling;while(a&&a.tagName!=ib){a=a.previousSibling}if(c){c.parentNode.removeChild(c)}if(a&&a.src){return e(a.src)}}return O}
function j(){var a=m.getElementsByTagName(jb);if(a.length>0){return a[a.length-1].href}return O}
var k=g();if(k==O){k=h()}if(k==O){k=i()}if(k==O){k=j()}if(k==O){k=e(m.location.href)}k=f(k);s=k;return k}
function D(){var b=document.getElementsByTagName(kb);for(var c=0,d=b.length;c<d;++c){var e=b[c],f=e.getAttribute(lb),g;if(f){f=f.replace(mb,O);if(f.indexOf(nb)>=0){continue}if(f==ob){g=e.getAttribute(pb);if(g){var h,i=g.indexOf(qb);if(i>=0){f=g.substring(0,i);h=g.substring(i+1)}else{f=g;h=O}t[f]=h}}else if(f==rb){g=e.getAttribute(pb);if(g){try{z=eval(g)}catch(a){alert(sb+g+tb)}}}else if(f==ub){g=e.getAttribute(pb);if(g){try{y=eval(g)}catch(a){alert(sb+g+vb)}}}}}}
function E(a){var b=t[a];return b==null?null:b}
function F(a,b){var c=w;for(var d=0,e=a.length-1;d<e;++d){c=c[a[d]]||(c[a[d]]=[])}c[a[e]]=b}
function G(a){var b=v[a](),c=u[a];if(b in c){return b}var d=[];for(var e in c){d[c[e]]=e}if(z){z(a,d,b)}throw null}
var H;function I(){if(!H){H=true;var a=m.createElement(wb);a.src=xb;a.id=P;a.style.cssText=yb;a.tabIndex=-1;m.body.appendChild(a);n&&n({moduleName:P,sessionId:o,subSystem:Q,evtGroup:W,millis:(new Date).getTime(),type:zb});a.contentWindow.location.replace(s+K)}}
v[Ab]=function(){var b=navigator.userAgent.toLowerCase();var c=function(a){return parseInt(a[1])*1000+parseInt(a[2])};if(function(){return b.indexOf(Bb)!=-1}())return Bb;if(function(){return b.indexOf(Cb)!=-1}())return Db;if(function(){return b.indexOf(Eb)!=-1&&m.documentMode>=9}())return Fb;if(function(){return b.indexOf(Eb)!=-1&&m.documentMode>=8}())return Gb;if(function(){var a=/msie ([0-9]+)\.([0-9]+)/.exec(b);if(a&&a.length==3)return c(a)>=6000}())return Hb;if(function(){return b.indexOf(Ib)!=-1}())return Jb;return Kb};u[Ab]={gecko1_8:0,ie6:1,ie8:2,ie9:3,opera:4,safari:5};ritualdesigner.onScriptLoad=function(){if(H){q=true;B()}};ritualdesigner.onInjectionDone=function(){p=true;n&&n({moduleName:P,sessionId:o,subSystem:Q,evtGroup:Lb,millis:(new Date).getTime(),type:X});B()};D();C();var J;var K;if(A()){if(l.external&&(l.external.initModule&&l.external.initModule(P))){l.location.reload();return}K=Mb;J=O}n&&n({moduleName:P,sessionId:o,subSystem:Q,evtGroup:R,millis:(new Date).getTime(),type:Nb});if(!A()){try{F([Gb],Ob);F([Bb],Pb);F([Fb],Qb);F([Jb],Rb);F([Db],Sb);F([Hb],Tb);J=w[G(Ab)];var L=J.indexOf(Ub);if(L!=-1){x=Number(J.substring(L+1));J=J.substring(0,L)}K=J+Vb}catch(a){return}}var M;function N(){if(!r){r=true;if(!__gwt_stylesLoaded[Wb]){var a=m.createElement(Xb);__gwt_stylesLoaded[Wb]=a;a.setAttribute(Yb,Zb);a.setAttribute($b,s+Wb);m.getElementsByTagName(_b)[0].appendChild(a)}B();if(m.removeEventListener){m.removeEventListener(ac,N,false)}if(M){clearInterval(M)}}}
if(m.addEventListener){m.addEventListener(ac,function(){I();N()},false)}var M=setInterval(function(){if(/loaded|complete/.test(m.readyState)){I();N()}},50);n&&n({moduleName:P,sessionId:o,subSystem:Q,evtGroup:R,millis:(new Date).getTime(),type:X});n&&n({moduleName:P,sessionId:o,subSystem:Q,evtGroup:Lb,millis:(new Date).getTime(),type:S});m.write(bc)}
ritualdesigner();
... which looks independent enough so as to be directly saveable.
Sunrunners_Fire is offline   Reply With Quote
Old 10-06-2011, 03:51 PM   #15
ssveter
 
ssveter's Avatar
 
Join Date: Jun 2011
Location: Richmond, VA
Default Re: [MH] Tool for calculating Ritual Path Magic costs

Pardon my ignorance on Java, HTML, Visual Basic, and just about everything that has to do with coding. As I am a retired Abrams tank master gunner who knows everything about tanking there is....but what? Put it where??
ssveter is offline   Reply With Quote
Old 10-06-2011, 04:02 PM   #16
roguebfl
Dog of Lysdexics
 
roguebfl's Avatar
 
Join Date: Oct 2004
Location: Melbourne FL, Formerly Wellington NZ
Default Re: [MH] Tool for calculating Ritual Path Magic costs

Quote:
Originally Posted by ssveter View Post
Pardon my ignorance on Java, HTML, Visual Basic, and just about everything that has to do with coding. As I am a retired Abrams tank master gunner who knows everything about tanking there is....but what? Put it where??
in the folder/directory that you saved the page, make a subfolder/subdirectory called "ritualdesigner" in side the folder/directory save "ritualdesigner.nocache.js"
__________________
Rogue the Bronze Firelizard
Gerald Grenier, Jr. Hail Eris!
Rogue's Weyr
roguebfl is offline   Reply With Quote
Old 10-06-2011, 05:46 PM   #17
ssveter
 
ssveter's Avatar
 
Join Date: Jun 2011
Location: Richmond, VA
Default Re: [MH] Tool for calculating Ritual Path Magic costs

Ok here is what I have tried to do.
1. Make a "ritualdesigner" folder under the folder I saved the webpage files. result same.
2. Make a separate folder of the same name.
result same
3. Went into the script and replaced src=" " with filepath to where ritualdesigner.nocache.js resides.
result same
4. Went back into script and changed src location to location of #2 above
result same.

So what should I try next?
ssveter is offline   Reply With Quote
Old 10-06-2011, 05:54 PM   #18
Refplace
 
Refplace's Avatar
 
Join Date: Nov 2008
Location: Yukon, OK
Default Re: [MH] Tool for calculating Ritual Path Magic costs

Quote:
Originally Posted by ssveter View Post
Ok here is what I have tried to do.
1. Make a "ritualdesigner" folder under the folder I saved the webpage files. result same.
2. Make a separate folder of the same name.
result same
3. Went into the script and replaced src=" " with filepath to where ritualdesigner.nocache.js resides.
result same
4. Went back into script and changed src location to location of #2 above
result same.

So what should I try next?
Not working for me either :( I looked at the code and best I can tell I would have to just rewrite the thing from scratch. Trouble is then no one else would be able to use it still.
Refplace is offline   Reply With Quote
Old 10-06-2011, 06:03 PM   #19
ssveter
 
ssveter's Avatar
 
Join Date: Jun 2011
Location: Richmond, VA
Default Re: [MH] Tool for calculating Ritual Path Magic costs

It works fine from the net. It is just that since I am deployed and don't have a stable internet connection an offline version would be awesome.

I have tried to develop a version of my own but as I said before I don't no crap about coding. However, I am trainable.

I am thinking it would be a matter of setting up radio buttons and listboxes and having all the calculations be behind the curtain so to speak.

I have a partial solution on an excel file. I am still working through the afflictions and setting a list box that appears after afflictions is selected from a dropdown list.

The other stuff is a matter of logic formulas.

right now its a bit messy but the stuff I have done is functional.
ssveter is offline   Reply With Quote
Old 10-08-2011, 10:26 AM   #20
nick_coffin
 
Join Date: Aug 2004
Default Re: [MH] Tool for calculating Ritual Path Magic costs

Quote:
Originally Posted by ssveter View Post
It works fine from the net. It is just that since I am deployed and don't have a stable internet connection an offline version would be awesome.
I have a version that uses the HTML5 manifest to cache it in your browser. Let me upload that this weekend and you can use it while offline, as long as you don't clear the browser's cache.
nick_coffin is offline   Reply With Quote
Reply

Tags
cost calculator, monster hunters, ritual path magic

Thread Tools
Display Modes

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
Fnords are Off
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 10:53 AM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.