Skip to content

Instantly share code, notes, and snippets.

I prefer to set: fullresolution=0x0 (desktop native) output=overlay And for sound I increase the block size to around 2000. I've always found this gives better performance in fullscreen and will stop any weird sound skips and pauses with nice crisp pixels.

Many users are reporting issues with the sound in GOG's release of Wing Commander I. Specifically, they are hearing sounds like chime notes intead of lasers blasts during combat. The problem is that the game is configured to play sounds through a Roland MT-32 MIDI, which DOSBox does not naturally emulate. We expect GOG will provide an updated version of the game in the near future, but in the meantime this quick user fix will repair the issue: open the WINGCMDR.CFG file in a text editor and replace the letter "R" with "a552".

➜ koturo git:(simple_mode) ✗ node --trace-gc --max-old-space-size=8192 /Users/gilles/dev/koturo/mobileapp/koturo/node_modules/react-native/local-cli/cli.js bundle --entry-file index.ios.js --platform ios --dev false --reset-cache --bundle-output /Users/gilles/dev/koturo/mobileapp/koturo/ios/build/Build/Products/Release-iphonesimulator/Koturo.app/main.jsbundle --assets-dest /Users/gilles/dev/koturo/mobileapp/koturo/ios/build/Build/Products/Release-iphonesimulator/Koturo.app
[58064:0x102801600] 32 ms: Scavenge 3.1 (6.5) -> 2.8 (7.5) MB, 0.7 / 0.0 ms allocation failure
[58064:0x102801600] 49 ms: Scavenge 3.5 (8.0) -> 3.3 (8.5) MB, 0.9 / 0.0 ms allocation failure
[58064:0x102801600] 100 ms: Scavenge 7.3 (11.6) -> 6.8 (13.6) MB, 0.7 / 0.0 ms allocation failure
[58064:0x102801600] 131 ms: Scavenge 9.0 (14.1) -> 7.7 (14.6) MB, 1.0 / 0.0 ms allocation failure
[58064:0x102801600] 162 ms: Scavenge 9.8 (15.1) -> 8.5 (15.6) MB, 0.9 / 0.0 ms allocation failure
[58064:0x102801600] 181
This file has been truncated, but you can view the full file.
➜ koturo git:(simple_mode) ✗ ./release-on-device.sh
Compiling ClojureScript...
Compiling "index.ios.js" from ["src" "env/prod"]...
juil. 07, 2017 4:51:57 PM com.google.javascript.jscomp.LoggerErrorManager println
AVERTISSEMENT: /Users/gilles/dev/koturo/mobileapp/koturo/target/ios/koturo/shared/rn.js:32: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If you are targeting newer versions of JavaScript, set the appropriate language_in option.
koturo.shared.rn.entypoicon = reagent.core.adapt_react_class(require("react-native-vector-icons/Entypo").default);
^
juil. 07, 2017 4:51:57 PM com.google.javascript.jscomp.LoggerErrorManager println
AVERTISSEMENT: /Users/gilles/dev/koturo/mobileapp/koturo/target/ios/koturo/shared/rn.js:33: WARNING - Keywords and reserved words are not allowed as unquoted property names in older versions of JavaScript. If yo
```
transform[stdout]: <--- Last few GCs --->
transform[stdout]:
transform[stdout]: [57749:0x102801c00] 103297 ms: Mark-sweep 1391.7 (1470.8) -> 1391.7 (1470.8) MB, 2882.7 / 0.0 ms allocation failure GC in old space requested
transform[stdout]: [57749:0x102801c00] 106084 ms: Mark-sweep 1391.7 (1470.8) -> 1391.6 (1436.3) MB, 2787.7 / 0.0 ms last resort
transform[stdout]: [57749:0x102801c00] 108965 ms: Mark-sweep 1391.6 (1436.3) -> 1391.6 (1436.3) MB, 2880.5 / 0.0 ms last resort
transform[stdout]:
transform[stdout]:
transform[stdout]: <--- JS stacktrace --->
2017-07-02 21:03:00.867 [info][tid:main][RCTBatchedBridge.m:77] Initializing <RCTBatchedBridge: 0x6100001b4120> (parent: <RCTBridge: 0x6080000ca410>, executor: RCTJSCExecutor)
2017-07-02 21:03:01.077 [error][tid:com.facebook.react.JavaScript] Assert failed: c
2017-07-02 21:03:01.078 [fatal][tid:com.facebook.react.ExceptionsManagerQueue] Unhandled JS Exception: Assert failed: c
2017-07-02 21:03:01.096030+0200 FutureApp[11404:128594] [] nw_connection_get_connected_socket_block_invoke 3 Connection has no connected handler
2017-07-02 21:03:01.122 [info][tid:main][RCTRootView.m:295] Running application FutureApp ({
initialProps = {
};
rootTag = 1;
})
2017-07-02 21:03:01.122 [error][tid:com.facebook.react.JavaScript] Module AppRegistry is not a registered callable module (calling runApplication)
Loading dependency graph, done.
warning: the transform cache was reset.
transform[stdout]:
transform[stdout]: <--- Last few GCs --->
transform[stdout]:
transform[stdout]: [19791:0x103000000] 80762 ms: Mark-sweep 1392.2 (1473.0) -> 1392.2 (1473.0) MB, 2439.9 / 0.0 ms allocation failure GC in old space requested
transform[stdout]: [19791:0x103000000] 83092 ms: Mark-sweep 1392.2 (1473.0) -> 1392.2 (1437.5) MB, 2329.8 / 0.0 ms last resort
  • Proto-repl requires Ink to be installed
  • Leininen path must be FQNed in settings
  • Black screen at startup
  • Restarting a few times clears the black screen
  • Setting active pane that is not present in pane container atom/atom#14716

Gilles is a full-stack software engineer specializing in building software that matters. He likes to design small, well-tested services written in expressive, functional languages like Clojure, he has also developed a keen interest in developing React Native apps and running software with Docker. Gilles also code in Java too, for food. He tweets at @gphilippart.

@gphilipp
gphilipp / egalize.clj
Last active June 7, 2017 12:00
baldly written function
(defn pad [n coll val]
(take n (concat coll (repeat val))))
(defn egalize-colls [coll1 coll2 pad-item]
(if (= (count coll2) (count coll1))
[coll1 coll2]
(let [smallest-coll (if (< (count coll1) (count coll2)) coll1 coll2)
pad-count (if (= coll1 smallest-coll) (count coll2) (count coll1))]
(if (= coll1 smallest-coll)
[(vec (pad pad-count coll1 pad-item)) coll2]