- my OpenMW cheatsheet: https://github.com/drummyfish/my_text_d ... tsheet.txt
- scripts for running the game:
quick_run.shtest_run.sh - This is the command I call right from vim during development.Code: Select all
#!/bin/bash ./openmw --skip-menu --no-grab --load-savegame ~/.local/share/openmw/saves/testing/test1.omwsave
Code: Select all
#!/bin/bash clear; clear; make && ./quick_run.sh
- script for searching for keyword in the source codes:
search_code.shCode: Select all
#!/bin/bash clear clear grep --color -inr "$1" ../apps/ grep --color -inr "$1" ../components/
- snippet I copy/paste into source code when I need to print the scene graph:
Code: Select all
void printScene(osg::Node *n, int maxDepth=-1, int currentDepth=0) { if (maxDepth >= 0 && currentDepth >= maxDepth) return; for (int i = 0; i < currentDepth; ++i) std::cout << " "; std::cout << n->className() << "(" << n->getName() << "), mask = " << n->getNodeMask() << std::endl; if (n->asGroup()) for (int i = 0; i < (int) n->asGroup()->getNumChildren(); ++i) printScene(n->asGroup()->getChild(i),maxDepth,currentDepth + 1); }
- To record videos of bugs, vanilla behavior etc. I find SimpleScreenRecorder the best option.
- For shader development I use http://glslsandbox.com.