star smuggler

Thus spake capi3101:

Had a curious incident last night - finished getting all the commodities
into the game and saved it, so the next bit was to get crewmember names
working. That was going along splendedly, but VASSAL couldn’t save the
game when I tried…I was thinking it might’ve been because there wasn’t
sufficient space remaining on my jump drive (where the mod file itself
is located), but it still had over a gigabyte of space available. I’m
hoping that was just a fluke; I guess I’ll know for sure when I go to
work on the mod later today. Meantime, I’ve lost that particular bit of
work (at least all the commodities are in…).

What was the error message?


J.

@Uckelman: I was unable to replicate the error last night on the same machine that gave it to me in the first place, so I can’t give you the exact error message. Something about it not being able to delete the old mod file to replace it with the new one. Since I can’t replicate the error, though, I’m firmly of the opinion it was just a fluke.

At this point I’m setting up At-Start Stacks for the E000 (game start) conditions, and once that’s done all I need to do is implement the HTMLs. Shouldn’t be much longer.

Thus spake capi3101:

Still having the same problems with HTML anchors in 3.2.8 that I was
having with 3.2.5.

I’m looking into this now. The way we’re handling local anchors is
completely broken. I think whoever wrote this code did not consider
that case.


J.

Okay, thanks for the update. While y’all are at it, you might want to set things up so that if you click on a menu entry it pulls up the associated page…while working on this mod, I’ve had instances where I hit a hyperlink on a page, selected another page via the menu, then tried to come back to the original page via the menu; the last page visited is where I wound up.

Current version of the mod will be sans links, because that’s the part I’m working on now (last bit to be implemented); I might be convinced to put them back in at a later time (there’s going to be a hell of a lot of HTML charts in this mod).

Thus spake capi3101:

Okay, thanks for the update. While y’all are at it, you might want to
set things up so that if you click on a menu entry it pulls up the
associated page…while working on this mod, I’ve had instances where I
hit a hyperlink on a page, selected another page via the menu, then
tried to come back to the original page via the menu; the last page
visited is where I wound up.

Can you give me a minimal module where this happens along with steps
to reproduce the problem?

Current version of the mod will be sans links, because that’s the part
I’m working on now (last bit to be implemented); I might be convinced to
put them back in at a later time (there’s going to be a hell of a lot of
HTML charts in this mod).

Try 3.2.9-svn8828, available here:

vassalengine.sourceforge.net/builds/

Does that fix your anchors problem? (BTW, your example had ‘id’ as the
anchor attribute instead of ‘name’. I’m not certain that Java’s HTML
renderer supports ‘id’ as an anchor.)


J.

Will do - not someplace where I can work with VASSAL at the moment but I’ll get a sample mod to you as soon as I can. Will also try out 3.2.9 and see if things are different or not.

Now running 3.2.9-svn8828, and my test file is attached. Neither test passed in 3.2.8, but the targeted link test passed in 3.2.9.

I’ll begin setting up for anchors then…it’ll be far easier for me to build two large HTML charts than to build somewhere in the neighborhood of 300 tiny ones…

BTW, my windows have been doing some wonky things lately size-wise (the text box extends all the way down to the bottom of the screen and I have to resize it to see the main board, have to resize the piece window in a Game Piece Pallette so the Scrollable Menu is visible, things like that). Any pointers on setting their dimensions directly?

Thus spake capi3101:

Now running 3.2.9-svn8828, and my test file is attached. Neither test
passed in 3.2.8, but the targeted link test passed in 3.2.9.

Your other test isn’t ever going to pass, as that’s not how the
charts work. When you follow a link, the current chart displays
the document at the URL of the link you followed. The chart has
no way of telling that there’s another chart already displaying
the target document.

BTW, my windows have been doing some wonky things lately size-wise (the
text box extends all the way down to the bottom of the screen and I have
to resize it to see the main board, have to resize the piece window in a
Game Piece Pallette so the Scrollable Menu is visible, things like
that). Any pointers on setting their dimensions directly?

There might be some sizing information stored in your preferences. Look
in VASSAL/prefs/ for that, in the place where program prefs
are stored on your system.


J.

Okay, thanks. So I guess I need to be sure and put a link back to the source page on the destination page then if I don’t want mod players to get all kinds of messed up and angry and carted off to prison in a violent rage…

Occurred to me on my walk this morning that there was one more test I needed to run: to target a link on a different HTML file. For example, E001 (an event) makes reference to several of the R2 series (rules), including R201. I want to make sure I can target R201 specifically. And while I’m at it, I’d like to target R201 via the menu as well. A couple of things to check that didn’t work in 3.2.8 there.

I am considering putting everything into one large HTML chart at this point. Depends on what happens with the menu system.

Thus spake capi3101:

Occurred to me on my walk this morning that there was one more test I
needed to run: to target a link on a different HTML file.

I tested this myself in the build for which I posted the link. It
should work.


J.

Tried out a targeted link to a different HTML this morning; it worked as you said, just leaving the aforementioned problem of the current chart displaying whatever document is at the URL followed. What did not work was trying to access a targeted link from the menu - I’ll attach a picture that shows what happens when I attempt to set it up. The mod displayed nothing when tried to access R201 directly through the menu (which is probably to be expected given the error message, right?).

Ran the first alpha playtest last night; everything’s in as far as I can tell. I did note a few things that needed to be tweaked and I’ll attend to them today. I hope to have a beta version ready for public abuse-ment sometime in the next day or two.

This game is irritating…game one, did a Contact try at the Regari spaceport, got mugged, tried to fight and got killed right off the bat. Game two, did a Contact try at the Regari spaceport, got freakin’ mugged again, twice, and then couldn’t get anywhere because the first guys got all my cash. Third game, hit the bank first, got caught up in a angry mob, got mugged again…I must be playing this thing wrong.

Good enough; here you go, pistolpete.

vassalengine.org/wiki/Module:Star_Smuggler

If you have any questions about how I’ve got things set up, lemme know.

Thanks capi3101.
Looks good . will have a lot of fun playing this .
thanks for all your hard work .will let you know if I hit any problems

hiya capi3101
been playing mod for a while now , works great , no probs up to now , once again thanks
pistolpete

Glad to hear it. Did you have any issues with the size of any of the windows? How about the number marker controls?

as stated in uckelmans remarks above text box extends all the way down to the bottom of the screen and I have
to resize it to see the main board, have to resize the piece window in a
Game Piece Pallette so the Scrollable Menu is visible.
But I don’t see that as a problem, the game works great.
Keep up the good work

Alright - so the window sizing issue is not just me then.

Found the prefs files directory; what specifically am I looking for?

Here - here’s the file. Gonna hex out my password but everything else is vanilla straight from the file:

#Sat Sep 21 23:01:21 CDT 2013
BoundsOfMynkuria\ I=150,150,0,0
Profile=
BoundsOfTalitar\ II=420,420,0,0
BoundsOfByzantium\ I=30,30,0,0
PromptNewLogEnd=true
BoundsOfUruskop=450,450,0,0
BoundsOfNipna\ I=270,270,0,0
PreferredEdgeDelay=200
BoundsOfCrewmember\ 5=870,870,0,0
BoundsOfCrewmember\ 4=840,840,0,0
BoundsOfCrewmember\ 3=810,810,0,0
BoundsOfCrewmember\ 2=780,780,0,0
BoundsOfNipna\ II=300,300,0,0
initialHeap=256
BoundsOfCrewmember\ 1=750,750,0,0
ShowCounterDetails=false
RealName=Stephen Rogers
useArrows=false
BoundsOfNew\ Karma\ II=240,240,0,0
BoundsOfAccount\ Board\ 6=690,690,0,0
movingStacksPickupUnits=false
BoundsOfAccount\ Board\ 5=660,660,0,0
BoundsOfAccount\ Board\ 4=630,630,0,0
PromptNewLogStart=false
BoundsOfAccount\ Board\ 3=600,600,0,0
BoundsOfAccount\ Board\ 2=570,570,0,0
BoundsOfCubro=90,90,0,0
BoundsOfAccount\ Board\ 1=540,540,0,0
promptLogComment=true
singleWindow=true
BoundsOfImperia=120,120,0,0
ChatFont=SansSerif,12
scrollSpeed=50
BoundsOfNew\ Karma\ I=210,210,0,0
BoundsOfRegari=360,360,0,0
BoundsOfChartWindow3=238,260,1042,724
BoundsOfSpringer=720,720,0,0
BoundsOfChartWindow0=0,390,1280,594
BoundsOfAsteroids=0,0,0,0
BoundsOfTalitar\ I=390,390,0,0
BoundsOfShip=321,288,0,0
BoundsOfByzantium\ II=60,60,0,0
BoundsOfRandom\ Planet=480,480,0,0
BoundsOfPalatek=330,330,0,0
SecretName=******************************
BoundsOfMynkuria\ II=180,180,0,0
maximumHeap=512
PreferredDelay=700

And here’s my V_Global file.

#Sun Sep 22 23:03:26 CDT 2013
Locale=en
initialHeap=256
maximumHeap=512
disableD3d=false
welcomeWizard=true
moduleManagerDividerLocation=1053
nextVersionCheck=1465922429489
BoundsOfModuleManager=0,0,1079,467
modulesDir=C\:\\Arctemp
RecentModules=C\:\\Program Files (x86)\\VASSAL\\Modules\\AlienFrontier.vmod,C\:\\Program Files (x86)\\VASSAL\\Modules\\Cosmicencounter2.1_3.2.vmod,C\:\\Program Files (x86)\\VASSAL\\Modules\\EPW-01.vmod,C\:\\VassalMods\\KCP\\KCP.vmod,C\:\\Users\\user\\Raj,E\:\\Mods\\StarSmuggler\\starsmuggler.vmod,C\:\\VassalMods\\Storm_Chaser_0-1.vmod,C\:\\Program Files (x86)\\VASSAL\\Modules\\The_Legend_of_Zelda_TBG.vmod,C\:\\Program Files (x86)\\VASSAL\\Modules\\TI3_VASSAL_v1_02SE.vmod
showServerStatus=false

I should probably mention that I’ve built six VASSAL mods so far (not counting test mods) and this is the first time I’ve had any issue with window sizing. (Six is right - four are on the wiki, one I’m using as a utility, and the last…well, I haven’t figured out how to recruit playtesters effectively, let’s put it at that).

I’ve also been able to crack open the Star Smuggler build file with 7-zip (I can only extract files, not replace them); is there anywhere I can look in there? I’ve had some prior experience with deciphering XML.

Thus spake capi3101:

[This message has been edited.]

Alright - so the window sizing issue is not just me then.

Found the prefs files directory; what specifically am I looking for?

If i remember correctly, each of those keys starting with “BoundsOf”
set the bounds for a window.


J.

Can’t tell which one refers to the Message Box. I also can’t figure out which windows ChartWindow0 and ChartWindow3 refer to; I don’t have anything with those names anywhere in the mod.