Page 21 of 50

Re: BGS - The BackgroundSet

Posted: Fri Jan 11, 2013 3:14 pm
by Diziet Sma
Yep.. It's all over the place.. I thought maybe ls -f was listing in inode order, so I added -i as well (-f means 'list all, do not sort, list entries in directory order) but the inode numbers are all jumbled as well.:

Code: Select all

diziet@diziet-sma:~/GNUstep/Applications/Oolite/MainAddOns$ ls -f -i
3540029 ./
2491432 ../
3408710 hyperradioPSY01.oxp/
2623972 Respray_for_Griffs_0.4_2012.06.24.oxp/
3936571 Neo-DockLights 1.00.oxp/
4325907 YOUR_AD_HERE_set_C.oxp/
3555411 TrophyCollector_1.8.oxp/
4326211 YOUR_AD_HERE_set_F417_upd.oxp/
3149004 multidecal_cobraIII_player.oxp/
3149024 Naval Grid 1.00.oxp/
3149110 Povray_Planets_Galaxy1_Textures.oxp/
3148933 marketAide_1.2_2012-09-01.oxp/
3148189 Graffiti_starter_pack.oxp/
3408489 longway 1.1.oxp/
3015773 Povray_Planets_Galaxy8_Textures.oxp/
3539880 NRE249.oxp/
3147799 Dredgers 2.4.6.oxp/
3539485 Armoury 1.11.oxp/
3277882 Povray_Planets_Galaxy2_Textures_v1.0_2012-02-12/
3670551 Skilled_NPCs_1.0.oxp/
3277280 Rock_Hermit_Locator1.3.3.oxp/
3555356 Misjump Inducer v0.2.oxp/
3540566 Snoopers2.4.oxp/
3547221 ships_cat_alpha_1.0.oxp/
3539467 Halsis_BGS1.2.oxp/
3147999 Fuel Station 1.34.oxp/
2623979 Kestrel&Falcon.oxp/
3149031 Naval Torpedo.oxp/
3408564 BeerCooler1.0.1.oxp/
3148922 LongRangeScanner v0.311.oxp/
3277649 TMP/
3936577 Planetary Compass 1.00.oxp/
3146222 behemoth 2.6.oxp/
3408548 DeepSpacePirates 1.3.oxp/
3148677 GrittyCoriolis.oxp/
3148276 griff_rock_hermit_fullsize_textures.oxp/
3936254 Cabal_Common_Library1.7.oxp/
3408143 Furball-1.7.oxp/
3277618 Tianve1.3.oxp/
3146816 CustomShieldsv083.oxp/
3408219 Serpent_Class_Cruiser_V1.00.oxp/
3148126 Galcop_trade_outpost.oxp/
3148690 Halsis.oxp/
3147962 ExtraFuelTanksV1 .4.1.oxp/
3936591 Planetary Compass Name Pack B.oxp/
2886851 Povray_Planets_Galaxy6_Textures.oxp/
3408430 nukes0.98.oxp/
3408394 Superhubv1.4.oxp/
3146074 MvM_veloceeappuntita v1.oxp/
3147900 Energy Equipment 1.11.oxp/
3148222 griff_alloys_and_wreckage.oxp/
3016035 Povray_Planets_Galaxy7_Textures.oxp/
3148307 Griff_Shipset_Replace_v1.34.oxp/
3936587 Planetary Compass Name Pack A.oxp/
3148771 IronHide 2.00.oxp/
3408720 hyperradioJFRG01.oxp/
3671373 The_Feudal_States_v1.15.oxp/
3147755 Diso.oxp/
3277685 transhab.oxp/
3936502 Cargo Spotter 1.00.oxp/
3277294 Shady_blackmonks_v1.46.oxp/
3146868 Delightful-Docking.oxp/
4325586 Vortex 1.30.oxp/
3149105 Povray_Planets_1.0.oxp/
3539637 UPS-courier v1.8.0.oxp/
3408291 TOGY_Main 1.1.oxp/
3278145 Povray_Planets_Galaxy4_Textures_v1.0_2012-02-05/
4325903 YOUR_AD_HERE_set_B417_upd.oxp/
3547143 Q-Bomb_Detector_1.2.oxp/
3147768 display_reputation.oxp/
3936364 Aquatics 2.30.oxp/
3146513 buoyRepair1.3.2.oxp/
3277546 TCA_v1.03.oxp/
4326140 YOUR_AD_HERE_set_F.oxp/
3936603 PlanetFall 1.51.oxp/
3936490 BigShips 1.02.oxp/
3149047 NumericHUDv3.oxp/
3146877 Dictators v1.5.oxp/
2758060 Povray_Planets_Galaxy3_Textures.oxp/
3408233 Z_GrOovy_Griffs_CobraMk3_Variety_Pack.oxp/
2363992 Red_Racer_1_0_1_2012-11-11.oxp/
3547223 HUD Vanisher 1.1.oxp/
3408163 griff_halloween_witch_v1.5.oxp/
3277261 Ring Racer 1.21.oxp/
3148175 globestation2.0.oxp/
3408343 TOGY_Monuments pack.oxp/
3670617 Camera_Drones_1.2.oxp/
4325755 YOUR_AD_HERE_set_A.oxp/
2360130 ZygoRoids v1.2.oxp/
3408692 Pitviper_Blackwidow_1_0_0_2012-09-09.oxp/
3277056 randomshipnames1.2.oxp/
3408283 total_patrol.oxp/
3408652 santa 1.2.oxp/
3936517 Lave Academy 1.32.oxp/
3146057 astronaut v1.oxp/
3148952 Missiles and Bombs v2.5.oxp/
3147913 Escape_Capsule_Locator_1.4.1_2012-06-05.oxp/
3408638 GalTech_Escape_Pods_V1.10.oxp/
3277539 Target Reticle 1.2.1.oxp/
3148033 Galactic_Navy 5.4.3.oxp/
3277072 RepairBots 2.09.oxp/
4325832 YOUR_AD_HERE_set_B.oxp/
3277290 Sensible Sun.oxp/
3146208 Asteroids3D1.2.oxp/
3408373 TOGY_Shipwreck pack.oxp/
3146024 PAGroove_Stations_v1.3.oxp/
3540480 Cobra3 XT.oxp/
3539594 OXPConfig2.2.4.oxp/
3936595 Planetary Compass Name Pack C.oxp/
3408425 orbits.oxp/
3408770 hyperradioTN01.oxp/
3408451 nexus missile.oxp/
3277380 SniperCameraSystemv1.1.oxp/
3408615 missile_spoof.oxp/
3408414 black_baron.oxp/
4326288 BGS-A1.6.oxp/
4325982 YOUR_AD_HERE_set_D.oxp/
4325689 YAH Witchpoint Override 1.00.oxp/
3277876 Welcome Mat 1.12.oxp/
3277533 Target Autolock Plus 1.12.oxp/
2621964 griff_station_bundle_fullsize_tex.oxp/
3277366 ShieldEqualizer+Capacitors(v1.3).oxp/
3146997 SIRF20.oxp/
3277086 Rescue_Stations_1.2.4.oxp/
3277529 TalkativeCompass_1.0.3.oxp/
3145800 Anarchies2.8.oxp/
3148318 Griff_Shipset_Resources_v1.2.25.oxp/
3147933 Escort_Contracts_1.5.6_2012-05-07.oxp/
3146812 Config/
3277666 Tracker 1.02.oxp/
3145739 hyperRadioST01.oxp/
3145729 hyperradioHH01.oxp/
3145756 HyperradioAFC01.oxp/
3147787 Dock_Assist_System1.2.oxp/
3147981 FTZ v0.15.oxp/
2623335 Combat_Arena_1.0.oxp/
3147971 Factions-1.11.oxp/
3146483 BlOomberg Markets v2.5.oxp/
2887114 Amphisbaena.oxp/
3146692 Cargo Shepherd 1.01.oxp/
3145766 hyperradioMOBY01.oxp/
3555360 HyperCargo 1.10.oxp/
3149097 Police_Scanner_Upgrade_1.3.1_2011-12-18.oxp/
3936223 Ship_Storage_Helper_0.20_2012.06.24.oxp/
4326133 YOUR_AD_HERE_set_E417_upd.oxp/
3408569 Sniper Sight 2.0.3.oxp/
2623366 Extended_Shipyards_0.15_2012.06.24.oxp/
4325830 YOUR_AD_HERE_set_A_F - updates/
3148870 Lave.oxp/
3146497 BountyScannerv2.0.oxp/
3811285 RandomHits1.4.17.oxp/
3149078 Pirate_coves 1.3.3.oxp/
3146674 captKev_dodo.oxp/
3277602 Thargoid_Witchspace_Drive_0.9.3_2012.04.02.oxp/
3276816 railgun.oxp/
3148943 MilitaryTargettingSystemv1.oxp/
3408136 Missile Analyser 1.2.oxp/
3146708 Commies.oxp/
3146508 BountyStatus 1.00.oxp/
3540383 Turret Toggler 1.0.oxp/
3408505 griff_boa_prototype_normalmapped.oxp/
4326053 YOUR_AD_HERE_set_D417_upd.oxp/
3408748 Pitviper_1_0_0_2012-09-09.oxp/
3277680 Traffic Control 1.11.oxp/
3146930 Disabled/
3407873 Povray_Planets_Galaxy5_Textures_v1.0_2012-02-28/
4325826 YOUR_AD_HERE_set_A417_upd.oxp/
3277459 SniperLockv1.oxp/
3408586 Yellowbelly_Racer_1_0_0_2012-10-23.oxp/
4325694 YOUR_AD_HERE.oxp/
4325571 TrackerCam 1.02.oxp/
3148778 King Cobra.oxp/
4325978 YOUR_AD_HERE_set_C417_upd.oxp/
4326057 YOUR_AD_HERE_set_E.oxp/
3547226 Deep_Horizon_Nav_Buoy.oxp/
3547224 WEBS System 1.1.oxp/
3936599 Planetary Compass Name Pack D.oxp/
3147956 Escort_Formations_1.1.oxp/
2360218 Undocumented Launch 1.0.oxp/
3277357 ShieldCycler 0.30.3.oxp/
3277650 Tori2.01.oxp/
3540394 RealisticStars SSC 1.1.oxp/
3148154 Gates 1.13.oxp/
3148750 Hired Guns 1.26.oxp/
2624132 VisualEffectDemo-Rings_0.5.oxp/
3541314 New_Cargoes_1.2.1.oxp/
3408632 Auto-ECM 0.2.oxp/
3540530 Hyperradio1.26.oxp/
4326215 YOUR_AD_HERE_set_G.oxp/
3547214 Green Gecko XL.oxp/
2758049 hyperRadioST02.oxp/
3148023 FuelCollectorV0.07.oxp/
4325616 WildShips 1.06.oxp/
Weird that it's all over the place.. I wonder if it's listing by folder creation date?

Edit: nope.. it isn't doing that either. I'm off to do some RTFMimg.

Re: BGS - The BackgroundSet

Posted: Fri Jan 11, 2013 3:21 pm
by JazHaz
Diziet Sma wrote:
Yep.. It's all over the place..:

Code: Select all

diziet@diziet-sma:~/GNUstep/Applications/Oolite/MainAddOns$ ls -f -i
3540029 ./
2491432 ../
..
..
3539467 Halsis_BGS1.2.oxp/
..
..
3148690 Halsis.oxp/
..
..
4326288 BGS-A1.6.oxp/
..
..
Weird that it's all over the place.. I wonder if it's listing by folder creation date?
Editted your list. Yes BGS is after Halsis. I think that Svengali's suggestion of adding the Halsis sounds into BGS's customsounds.plist is the way to go.

Re: BGS - The BackgroundSet

Posted: Fri Jan 11, 2013 3:23 pm
by Cody
Diziet Sma wrote:

Code: Select all

diziet@diziet-sma:~/GNUstep/Applications/Oolite/MainAddOns$ ls -f -i
3148276 griff_rock_hermit_fullsize_textures.oxp/
2621964 griff_station_bundle_fullsize_tex.oxp/
The griff_rock_hermit_fullsize_textures.oxp is included in the griff_station_bundle_fullsize_tex.oxp - which has nothing to do with your problem, of course.

Re: BGS - The BackgroundSet

Posted: Fri Jan 11, 2013 3:29 pm
by Diziet Sma
@ JazHaz.. yep, I'm inclined to agree.. but I still want to know why Linux is doing what it does!

@ EV.. thanks.. I wasn't aware of that!

Re: BGS - The BackgroundSet

Posted: Fri Jan 11, 2013 3:39 pm
by Eric Walch
On the mac you just get:

Code: Select all

iMac-DDR2:AddOns ericwalch$ ls -i -f
8620541 .
 982567 ..
8683106 .DS_Store
8620573 .SynologyWorkingDirectory
8621394 accessoriesV2.1.oxp
8622037 aegidian-special.oxp
8622314 Anarchies2.6.oxp
8623231 Aquatics 2.21.oxp
8624055 Armoury 1.08.oxp
8624863 Asteroids3D0.9.oxp
8624929 AsteroidStorm 4.03.oxp
8625877 behemoth 2.6.oxp
8626245 BehemothSpacewar 1.3.oxp
9151469 BGS-A1.6_r66.oxp
8627540 BigShips 1.02.oxp
8627607 BoaClipper.oxp
8627651 BountyScannerv2.0.oxp
8627704 buoyRepair.oxp
....
Indeed alphabetically with the same command.

And I have put my addOns folder onto my own Synology cloud (they synchronise between my computers and are thus identical in content). When I mount that Linux Volume to my mac and do a list of it, I get:

Code: Select all

iMac-DDR2:addOns ericwalch$ ls -i -f
      2 .							3500083 YOUR_AD_HERE_set_C_4.17.oxp
  26139 ..							3500084 griff_viper_normalmapped.oxp
3500001 lambda.oxp						3500085 weeviloid2.oxp
3500002 griff_ferdelance_normalmapped.oxp			3500086 Diso.oxp
3500003 YOUR_AD_HERE_set_A_4.17.oxp				3500087 TOGY_Main 1.2.oxp
3500004 Dock_Assist_System1.1.oxp				3500088 wolfwoods_variants.oxp
3500005 behemoth 2.6.oxp					3500089 System Capitals.rtf
3500006 ixianships 1.2.oxp					3500090 military Fiasco 2.5.2.oxp
3500007 griff_mamba_normalmapped.oxp				3500091 griff_cobraII_subent_missiles.oxp
3500008 nukes0.98.oxp						3500092 liners_v1.4.oxp
3500009 ZygoRoids v1.oxp					3500093 Pods 1.32.oxp
3500010 liberator.oxp						3500094 Commies.oxp
3500011 marett_vol1.oxp						3500095 Orisisv1.3.oxp
3500012 Cabal_Common_Library1.6.oxp				3500096 Shady_blackmonks_v1.42.oxp
The Synology nas operates under Linux and shows the chaotic order, even when called from a mac. Also the listing is now two columns.

Re: BGS - The BackgroundSet

Posted: Fri Jan 11, 2013 4:04 pm
by Diziet Sma
@ Eric.. It looks like the Mac is still sorting the list, even though the -f command is telling ls not to sort the files. (Which is kinda naughty of Apple, given the following)

Right. Some checking (using info coreutils 'ls invocation') reveals that the -f option lists the files in the order they were added to the directory. (I'm guessing.. that is still a little unclear) are stored in the directory. What might be termed their 'natural' order.

Code: Select all

`-f'
     Primarily, like `-U'--do not sort; list the files in whatever
     order they are stored in the directory.  But also enable `-a' (list
     all files) and disable `-l', `--color', and `-s' (if they were
     specified before the `-f').
Possibly, this means that if I were to fully delete the halsis directory, and then add it again, things might work again. If not, I will have to go with the suggestion Svengali made.

Edit: corrected the above, based on testing and more research.

Re: BGS - The BackgroundSet

Posted: Fri Jan 11, 2013 4:07 pm
by cim
Diziet Sma wrote:
Possibly, this means that if I were to fully delete the halsis directory, and then add it again, things might work again. If not, I will have to go with the suggestion Svengali made.
Delete it, add another directory (to take up that slot), then re-add it. Depending on how much deletion of directories you've already done, that may or may not get it into the right place...

Re: BGS - The BackgroundSet

Posted: Fri Jan 11, 2013 4:21 pm
by Diziet Sma

Re: BGS - The BackgroundSet

Posted: Fri Jan 11, 2013 4:34 pm
by Diziet Sma
Since Linux treats Halsis and halsis as two separate directories, instead of deleting Halsis.oxp, I just added another halsis.oxp and ran ls -f to see where the new directory appeared. No luck. Still way before BGS.

However, this suggests a simple solution.

Delete both versions of halsis.oxp and BGS. Reinstall BGS-A.oxp. Reinstall halsis.oxp. BGS should now have the slot before halsis, and everything should load in the correct order.

Re: BGS - The BackgroundSet

Posted: Fri Jan 11, 2013 6:06 pm
by Diziet Sma
Well, I can report that the above didn't work.

After some experimentation and re-reading of the link I posted in response to cim, I think I understand why, and it's not good.

After the Linux Ext2 filesystem, directory structures were changed from a linear array of directory entries to a hashed, balanced, binary-tree (or htree) to improve performance. In simple terms, this means that for Ext3 and Ext4 filesystems, there are no 'slots' left free when a directory or file is deleted.

Instead, the name of the file or directory is run through an algorithm to produce a "hash" or unique number. The value of this hash then determines which branch and leaf the entry for that file/directory will appear in. No matter how much shuffling around is attempted by adding/deleting files and directories, when you re-install an OXP, it will appear in the same position, relative to the other OXPs, that it had before.

It gets a bit more complicated than that, of course, but the upshot is that there is no way to predict where in the hash-tree a particular entry will appear, and thus currently there is no way to control (or alter) the loading order of OXP files in Linux.

The ramifications for OXPs which modify other OXPs, (such as BGS) will take some thinking about.

Svengali wrote:
The loading order is - as far as I'm aware - OS specific and can't be specified by OXPs and Oolite uses what the OS filemanager tells it. So whatever OXPs are doing it might or might not work.
@ cim.. Is there any way that Oolite can specify to the OS filemanager how it wants things loaded? Is that even necessarily a good idea, or may it lead to other problems? As filesystems continue to evolve, it may well become necessary that Oolite have a standardised method/system of loading OXPs, to maintain consistency across platforms.


The above also explains why Eric's Mac has a sorted list even when the ls -f option is used. Apple's HFS+ uses a simpler binary-tree structure, so the way a directory is stored on disk is quite different. When he lists a Linux Volume, he gets the same hash-sorted list as a Linux user.


In the meantime, guess I'll just have to follow Svengali's advice, and add the Halsis sounds to the BGS customsounds.plist.

Re: BGS - The BackgroundSet

Posted: Fri Jan 11, 2013 9:07 pm
by Svengali
Diziet Sma wrote:
In the meantime, guess I'll just have to follow Svengali's advice, and add the Halsis sounds to the BGS customsounds.plist.
If you take a look at the patch (Halsis_BGS1.2) you'll notice that it contains some fixes.

Code: Select all

	"[cloaking-device-off]" = "bgs-c_cloak_off.ogg";
	"[cloaking-device-on]" = "bgs-c_cloak_on.ogg";
	"[hold-full]" = "cargfull.ogg";
	"[witchdrive-malfunction]" = "witchmal.ogg";
The first two are just the original entry from BGS, because the sounds are simply not existing in Halsis (although declared) and the other two typo fixes.

Re: BGS - The BackgroundSet

Posted: Sat Jan 12, 2013 6:41 pm
by Diziet Sma
Because Halsis_BGS was loading before BGS, it also was not taking effect. In the end I had to make the changes directly to the BGS customsounds.plist to get things to work correctly.

Just in case anyone else using Linux with BGS and Halsis has the same problems, I've zipped up the alternate customsounds.plist along with installation instructions and uploaded it to my box account.

Alternate_BGS_customsounds_for_Halsis.zip

Re: BGS - The BackgroundSet

Posted: Sun Jan 13, 2013 12:10 am
by Svengali
Nice, Dizzy.
I guess the link should be placed on the BGS and/or Halsis Wiki page...

Re: BGS - The BackgroundSet

Posted: Sun Jan 13, 2013 3:30 am
by MrDorakeen
Finally feel I have something to share. (first time posting) So a BIG Thank You to everyone who puts time and effort into the whole project! I have been nostalgic and happy for many years.

My own tastes like the radio chatter, but don't like that it's constant. I figure that real radio chatter is going to go in bursts, and I wanted a way to simulate that. Not finding a solution in a quick romp through readme files and forums posts, I took a look at the files. Didn't want to take time away from my other coding projects, so here's my quick and dirty solution:

First, I created some .ogg files that were silence for varying amounts of time, from 5 seconds to 45 seconds.

I copied these files into the Sounds directory of the oxp.

Added the following lines to the end of the customsounds.plist:

Code: Select all

"[red_silence05]" = "silence05.ogg";
"[red_silence10]" = "silence10.ogg";
"[red_silence15]" = "silence15.ogg";
"[red_silence20]" = "silence20.ogg";
"[red_silence25]" = "silence25.ogg";
"[red_silence30]" = "silence30.ogg";
"[red_silence35]" = "silence35.ogg";
"[red_silence40]" = "silence40.ogg";
"[red_silence45]" = "silence45.ogg";
And modified the following line in BGS-M.js

Code: Select all

this.chatterPool = ["[bgs_fxChatter0]","[red_silence45]","[bgs_fxChatter1]","[red_silence40]",
		"[bgs_fxChatter2]","[red_silence35]","[bgs_fxChatter3]","[red_silence30]","[bgs_fxChatter4]",
		"[red_silence25]","[bgs_fxChatter5]","[red_silence20]","[bgs_fxChatter6]","[red_silence15]",
		"[bgs_fxChatter7]","[red_silence15]","[bgs_fxChatter8]","[red_silence15]","[bgs_fxChatter9]",
		"[red_silence10]","[bgs_fxChatterA]","[red_silence10]","[bgs_fxChatterB]","[red_silence10]",
		"[bgs_fxChatterC]","[red_silence10]","[bgs_fxChatterD]","[red_silence05]","[bgs_fxChatterE]",
		"[red_silence05]","[bgs_fxChatterF]"];
WooHoo! It's working. Perhaps a bit too sporadic now, but deleting some of the silence entries in the this.chatterPool array should fix that.

If I were to code it, I would take this approach:
Set up two delay ranges, a response time (very short) and a pause time (long).
The response pauses would be between 1 and 10 seconds.
The longer pauses from 10 to 60 seconds.
Optimally, these would be user-settable.
Each burst of chatter would be from 1 to 5 bits of chatter, with a response pause between them, then a long pause.

I sincerely apologize if I have stepped on anyone's toes here. Just wanted to give a little back.

Re: BGS - The BackgroundSet

Posted: Sun Jan 13, 2013 4:21 am
by Diziet Sma
I've added a similar patch for BGS-M to the zip, and placed a link on both Wiki pages.