Koncord
690211ad99
[General] Extract BaseEvent & BasePlayer from packets to functions
...
Move Send and Read functions to BasePacket
8 years ago
Koncord
cea1425db1
[Client] Remove redundant newlines & keep ~120 columns
8 years ago
David Cernat
a58601fb2b
[Client] Delineate tes3mp-only code more clearly, part 1
8 years ago
David Cernat
ed2176c984
[Client] Reuse 1 BaseEvent over and over instead of creating new ones
8 years ago
David Cernat
c8cbfbef62
[General] Sketch out server requests to players for container data
8 years ago
David Cernat
e703dd42aa
[Client] Rename LocalEvent into WorldEvent
8 years ago
Koncord
f78c749981
[Client] Use "NULL" instead "nullptr"
...
nullptr keyword introduced in C++11
8 years ago
David Cernat
703f253712
[Client] Delete new LocalEvents after sending them
8 years ago
David Cernat
da2f66d6ba
Merge pull request #135 from OpenMW/master
...
Add OpenMW commits up to 29 Jan
8 years ago
MiroslavR
d97e9cfe7e
Fix InterpreterContext::updatePtr updating mLocals to the implicit ref's locals when interpreting a targeted global script ( Fixes #3738 )
...
The interpreter context of a targeted global script would point to the target's locals instead of the global script instance's locals when the target changed cell during script execution. Credit to scrawl for the solution.
8 years ago
David Cernat
9f1e491a75
[General] Make WorldEvents store information about multiple objects
8 years ago
David Cernat
624b85347a
[Client] Create LocalEvent class and use it instead of WorldEvent
8 years ago
David Cernat
ee86c9161d
[Client] Set InterpreterContext's sendPackets to false in constructor
8 years ago
David Cernat
c77120df6d
Merge pull request #129 from OpenMW/master while resolving conflicts
...
# Conflicts:
# apps/openmw/mwworld/actiontake.cpp
8 years ago
scrawl
45fb4f04b1
Update reference of the interpreter context when an Activate results in a take action ( Fixes #3727 )
8 years ago
scrawl
70c5f64caa
Fix mLocals not being updated in InterpreterContext::updatePtr
8 years ago
Koncord
804259b2c9
Change some printf to LOG_MESSAGE_SIMPLE
...
printf is not streamed to files
8 years ago
Koncord
536715cf46
Cleanup tes3mp headers
8 years ago
David Cernat
fa9d6e810e
Use lowerCamelCase in tes3mp client function names like OpenMW does
8 years ago
David Cernat
344f2b535a
Fix setting of index for ID_SCRIPT_MEMBER_SHORT in InterpreterContext
8 years ago
David Cernat
fff6833950
Send ID_SCRIPT_MEMBER_SHORT from MWScript::InterpreterContext
8 years ago
David Cernat
d5fca115f7
Fix variable name for ID_SCRIPT_GLOBAL_SHORT in InterpreterContext
8 years ago
David Cernat
749c6db49e
Send WorldPackets with script values from MWScript::InterpreterContext
8 years ago
David Cernat
75f6d82f08
Add a way of filtering out ingame scripts for upcoming script packets
8 years ago
David Cernat
aaf4cc0d7e
Prevent being in a menu from disabling script execution or actor damage
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
scrawl
04f7a8f8eb
Remove redundant getId function
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
scrawl
67bd6cd708
Remove empty line at the beginning of files
...
git ls-files -z | xargs -0 sed -i '1{/^$/d}'
10 years ago
Stanislav Bas
196be7283d
Reset an activated reference after activation's exectution ( Fix #1738 )
10 years ago
dteviot
e197f5318b
fixing MSVC 2013 warning C4244: & C4305
...
conversion from 'const float' to 'int', possible loss of data
conversion from 'double' to 'int', possible loss of data
conversion from 'float' to 'int', possible loss of data
10 years ago
scrawl
2b7287cbd2
Merge branch 'master' of https://github.com/OpenMW/openmw into joystick
...
Conflicts:
CMakeLists.txt
10 years ago
scrawl
97cc2522c0
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
apps/openmw/mwgui/settingswindow.cpp
extern/oics/ICSInputControlSystem_joystick.cpp
files/mygui/openmw_settings_window.layout
10 years ago
Digmaster
1e4a845b6f
Minor code cleanup
10 years ago
scrawl
431f540791
ESSImport: fix NPC factions
10 years ago
scrawl
579f5d232f
Move interactive messageBox to separate function
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
Digmaster
c37881ead1
Joystick Support
10 years ago
scrawl
f7ba1dbfc8
Add error handling for getPcRank and similar defines ( Fixes #2071 )
10 years ago
MiroslavR
ed3a3f717f
Handle getdistance on objects inside a container ( Fixes #2046 )
10 years ago
Thoronador
4d62541b62
fix usage of numeric_limits static functions min() and max()
...
Functions min() and max() of std::numeric_limits<T> are static
and can therefore be accessed via class name and :: operator.
10 years ago
scrawl
c4fa671381
Don't allow raising faction rank if the next rank has no name ( Fixes #1975 )
10 years ago
scrawl
7252cb63a6
Fix cppcheck issues
10 years ago
MiroslavR
d64be1c092
Use CellId::mWorldspace to find out whether objects are in the same worldspace
10 years ago
MiroslavR
621e81fa7d
Make getdistance return maximum value only if the given objects are in different worldspaces ( Fixes #1895 )
10 years ago
Marc Zinnschlag
52f6a2ec7b
remote local variable access was always using variable with index 1 instead of the index specified by the access request ( Fixes #1739 )
11 years ago
Marc Zinnschlag
2e355df8b3
removed function ScriptManager::getLocalIndex (was redundant and was also depending on precompiled scripts)
11 years ago
Marc Zinnschlag
6a3ff211b1
automatically get target ID at InterpreterContext construction, if a reference is available
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
Emanuel Guevel
1e4a854433
Remove static method MWWorld::Class::get(&Ptr)
...
It was just adding a level of indirection to Ptr.getClass().
All the call were replaced by that instead. The number of lines changed
is important, but the change itself is trivial, so everything should be
fine. :)
11 years ago
scrawl
7f37f2c2be
Fixes #1187 : Make GetDistance handle actors in remote cells gracefully
11 years ago
scrawl
84961d7843
Fixes #1254 : PcRank should return first rank if not in the faction
11 years ago
scrawl
b2119441b9
Fix bug in PcRank / PcNextRank
...
It was using the first faction instead of the actor's faction.
11 years ago
Marc Zinnschlag
388735046f
fixed broken remote member variable access
11 years ago
Marc Zinnschlag
3b990795c4
added access to remote access of local variables of global scripts
11 years ago
scrawl
03cf383be7
Merge branch 'master' of https://github.com/zinnschlag/openmw into savedgame
...
Conflicts:
apps/openmw/mwgui/referenceinterface.cpp
apps/openmw/mwmechanics/actors.cpp
apps/openmw/mwmechanics/mechanicsmanagerimp.cpp
apps/openmw/mwmechanics/mechanicsmanagerimp.hpp
apps/openmw/mwscript/cellextensions.cpp
apps/openmw/mwworld/cells.cpp
apps/openmw/mwworld/cells.hpp
apps/openmw/mwworld/cellstore.cpp
apps/openmw/mwworld/store.cpp
apps/openmw/mwworld/worldimp.cpp
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
098f9712f1
Add getPlayerPtr() utility method. Reduces dependencies a lot.
11 years ago
Marc Zinnschlag
b38bfe1f21
removed a redundant function for listing global variables
11 years ago
Marc Zinnschlag
b0eb5938bf
removed some redundant code
11 years ago
Marc Zinnschlag
71436b1160
changed interface for global variable access
11 years ago
Marc Zinnschlag
bc6fe682c9
replaced getCurrentCellName function with a more general getCellName function
11 years ago
scrawl
7dc30a01cd
Some changes suggested by cppcheck
12 years ago
scrawl
6cd28d1156
Fix a bug in getPCNextRank
12 years ago
scrawl
c07b3ea61d
Text defines for npc race, class, and faction should use the translated name
12 years ago
Marc Zinnschlag
25d9918765
post merge fix: bringing code more in line with our naming standards and fixing an invalid name (names starting with double underscore are reserved in C++)
12 years ago
scrawl
ba7086cadf
Use race/class names (instead of ID) in replaced escape sequences
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
greye
11567663a7
applying new interface vol.4, inconsistent
12 years ago
greye
2057f5619e
move ESMStore to MWWorld
12 years ago
Marc Zinnschlag
6534c2a55a
Issue #107 : WindowManager is accessed only through the interface class from now on
13 years ago
Marc Zinnschlag
484cce12a8
Issue #107 : removed redundant getStore function from window manager
13 years ago
Marc Zinnschlag
0231533d05
Issue #107 : InputManager is accessed only through the interface class from now on
13 years ago
Marc Zinnschlag
28ecfb4290
Issue #107 : ScriptManager is accessed only through the interface class from now on
13 years ago
Marc Zinnschlag
78fe6fdce5
Issue #351 : Refactoring Action class
13 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
10b27e582b
Issue #181 : various fixed to member variable access
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
7102a825c2
Issue 255: moved global scripts into script manager (simplifying the environment class)
13 years ago
Jacob Essex
9aac625000
Changes to move the mutable ESM::Position data to RefData
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
Marc Zinnschlag
17135a6403
routed message box output through window manager
15 years ago
Marc Zinnschlag
7ba6bdb56c
prepared InterpreterContext for activation implementation
15 years ago
Marc Zinnschlag
77a0215d53
added get-, set- and mod-instructions for attributes
15 years ago
Marc Zinnschlag
2d8fbc6e55
implemented month variable and fixed some day/gamehour bugs
15 years ago
Nicolay Korslund
c61212202b
Moved mwgui/ back to apps/openmw/. Fixed mouse position bug.
15 years ago
Marc Zinnschlag
d27c548710
implemented passing of time
15 years ago
Marc Zinnschlag
083b11c740
moved global variable handling into a separate class
15 years ago
Nicolay Korslund
c84672a560
Added MyGUI to OpenMW, fully working (with events and script hooks)
15 years ago
Nicolay Korslund
4d74f85ae0
Moved mwgui manager to components, ready for testing
15 years ago