David Cernat
63a86f145d
[Client] Record type of each InterpreterContext for later checking
7 years ago
David Cernat
fa3baac0f3
Merge pull request #228 from OpenMW/master while resolving conflicts
...
# Conflicts:
# .travis.yml
# CMakeLists.txt
# apps/openmw/main.cpp
8 years ago
Bret Curtis
d785344fad
purge all instances of <boost/shared_ptr.hpp>, clean up unused headers
8 years ago
David Cernat
a5484d237b
Merge pull request #203 from OpenMW/master
...
Add OpenMW commits up to 21 Apr 2017, part 2
8 years ago
Allofich
ff3e307059
Pass parameters by const reference
8 years ago
David Cernat
a58601fb2b
[Client] Delineate tes3mp-only code more clearly, part 1
8 years ago
David Cernat
ee86c9161d
[Client] Set InterpreterContext's sendPackets to false in constructor
8 years ago
David Cernat
75f6d82f08
Add a way of filtering out ingame scripts for upcoming script packets
8 years ago
scrawl
f99cd15f00
Vanilla-compatible activate / onActivate ( Fixes #1629 )
...
See https://forum.openmw.org/viewtopic.php?f=6&t=3074&p=34618#p34635
9 years ago
Emmanuel Anne
af7b5e636e
improves InterpreterContext::updatePtr
...
This checks the update is really on the right pointer. It fixes the boat
disappearing in "fishing academy", and it allows scripts linked to objects
not to loose their default reference when using the object-> notation on
another object.
9 years ago
dteviot
407cd50890
fixed warning C4099:
...
type name first seen using 'class' now seen using 'struct'
10 years ago
Alexander "Ace" Olofsson
0af5c7b379
Starting to clean up some heavy includes
10 years ago
scrawl
2601b26217
Merge branch 'master' of https://github.com/OpenMW/openmw
10 years ago
scrawl
d955017079
Don't report script operation status via messageBox (Bug #1942 )
10 years ago
scrawl
7e8ca3fff1
Fix object movement between cells producing a stale Ptr within the script execution (Bug #1942 )
10 years ago
scrawl
7252cb63a6
Fix cppcheck issues
10 years ago
Marc Zinnschlag
2e355df8b3
removed function ScriptManager::getLocalIndex (was redundant and was also depending on precompiled scripts)
11 years ago
Marc Zinnschlag
27c84d6cb7
the reference for a targeted script is now determined when needed instead of at the start of the script execution
11 years ago
Marc Zinnschlag
75ab8de3d2
added opcode for running scripts with explicit references (targeted scripts)
11 years ago
scrawl
2ce8323a42
Fix getDistance not detecting references in inactive cells properly
11 years ago
scrawl
797134aa51
Handle activation scripts in AiActivate ( Fixes #1478 )
11 years ago
scrawl
e68600eda2
Make Activate instruction work properly even when onActivate was not called in the same frame.
...
There are two major differences to the old implementation:
- Activate can now be called on its own, e.g. in the console. In Vanilla this appears to be a no-op, so it is unlikely to be used and the potential for breakage is low.
- The Action to execute is now determined when Activate is called, not when OnActivate is called. This however makes sense, since there may be a time difference between the two, and the object (or the player) could have changed in the meantime, requiring a different Action.
Fixes #1166 and #1346 .
11 years ago
Marc Zinnschlag
3b990795c4
added access to remote access of local variables of global scripts
11 years ago
scrawl
768d9f7237
Scripting: Add an optional 'required' parameter to getReference (default: true). If required=false, it will not throw an exception if there's no reference. Fixes PcExpell not working without a reference like it's supposed to, and makes the code nicer for some others (use required=false instead of catching the exception)
11 years ago
scrawl
c07b3ea61d
Text defines for npc race, class, and faction should use the translated name
12 years ago
Tom Mason
8ac8fdff47
implemented all text defines except a few for keybindings that don't exist yet
12 years ago
Tom Mason
f2c6907244
Added in text escape sequences for dialogue, messageboxes and books. builtins are placeholders, global variables work
12 years ago
Marc Zinnschlag
4c39fefd1e
Issue #107 : World is accessed only through the interface class from now on; some include cleanup
13 years ago
Marc Zinnschlag
72fca40090
Issue #181 : member variable access in interpreter context
13 years ago
Marc Zinnschlag
35f478071e
Issue #255 : deleted the old environment class and using the new one instead
13 years ago
Marc Zinnschlag
125319c441
splitting off console output from messageBox channel
14 years ago
Marc Zinnschlag
e4a0702bb4
added journal-related script instructions
14 years ago
Jan Borsodi
1907aeb6c6
The game mode is now properly restored once a dialog is finished. Previously the game mode was only set in the window manager but it has to go through the input manager firs to get correct input state. Also updated the gui script commands to also use the input manager and not the window manager.
...
At some point the gui mode code should be moved to a class that handles all game mode (engine?).
15 years ago
Nicolay Korslund
8067d62800
Decoupled SoundManager from Interpreter::Context
15 years ago
Marc Zinnschlag
7ba6bdb56c
prepared InterpreterContext for activation implementation
15 years ago
Nicolay Korslund
c84672a560
Added MyGUI to OpenMW, fully working (with events and script hooks)
15 years ago
Marc Zinnschlag
8134c5b760
integrated CellStore pointer into Ptr class
15 years ago
Marc Zinnschlag
69e607e140
implemented getdistance with explicit references
15 years ago
Marc Zinnschlag
d4ac3b506e
implemented enable, disable and getdisabled with explicit references
15 years ago
Marc Zinnschlag
592fa84e2d
added Enable, Disable, GetDisabled
15 years ago
Marc Zinnschlag
6b3ff8a516
constness fixes
15 years ago
Marc Zinnschlag
0efe4742a6
added script-gui interface and gui-related script instructions
15 years ago
Marc Zinnschlag
9d73718ec1
added GetSecondsPassed
15 years ago
Marc Zinnschlag
f5a70abd4b
added OnActivate
15 years ago
Marc Zinnschlag
34b824cb70
implemented GetDistance function
15 years ago
Marc Zinnschlag
a61b2c39f0
added scriptrunning/startscript/stopscript; sorted out more case problems
15 years ago
Marc Zinnschlag
f9c1548f80
added menumode script function; added global variable handling in compiler and interpreter (openmw context still ignores global variables)
15 years ago
Marc Zinnschlag
4482884eb5
implemented global script execution
15 years ago
Marc Zinnschlag
eeeb9b09f8
identify LiveCellRefs by ptr instead of render handle
15 years ago
Marc Zinnschlag
3fae68b403
added unifying LiveCellRef pointer class
15 years ago