Commit graph

42 commits

Author SHA1 Message Date
Kevin Eady
12d6186d10
Script option enhancements (#118)
* Fix SCRIPTOPT_CAN_ACCESS_OFFLINE_MOBILES

* Add SCRIPTOPT_SURVIVE_ATTACHED_DISCONNECT

* wip beginning work on templatization

* Use PolModule in pol-specific modules

* wip, creating PolModule with getXYZParam

* wip 1, moving getXYZ to UOExecutor

* compilable with PolObjectImp / PolApplicObj

* add type guard

* wip, change signatures

change signatures of script_method, script_method_id, and
custom_script_method

* compilable (windows)

* linux fixes

* namespace fixes

* remove uoexhelp

* formatting

* compilable

- move can_access_offline_mobiles back to uoexec
- add guildscrobj and partyscrobj sources
- move EGuildRefObjImp and EPartyRefObjImp
- wip, implement asUOExec
- formatting uoexec.cpp,.h

* finish uoexec() helper

* some cleanup
2020-02-08 09:21:35 +01:00
turleypol
7e8f92bc85 rewrote module function generation, maybe this works 2019-11-10 22:04:08 +01:00
Kevin Eady
ca850a0c76 project refactoring 2019-10-18 21:32:30 +02:00
Kevin Eady
5c0fb7c4ea First support for .em-parsed module function tbls
- Create module parser custom target
- Include generated tables in .cpp sources
- Standardize module function names based off .em names
2019-10-17 22:37:26 +02:00
Kevin Eady
b55e852a5b wip 1 2019-10-17 19:08:49 +02:00
turleypol
9d1f3c3912 centralized file bom mark handling 2019-08-18 19:09:15 +02:00
turleypol
8b085e86ef dont assume a tainted string by default
cfgfiles (which includes savefiles, datafiles) get sanizized on read,
filemod::readfile, xml module, sql handled
old ascii speech packets handled
2019-01-12 17:14:05 +01:00
turleypol
8d9de3918a Merge remote-tracking branch 'origin/master' into utf8
* origin/master: (58 commits)
  fixed style
  fixed namespaces of moved files
  moved polfile/uofile files into plib to cleanup atleast a bit the compile dependencies
  fixed cpu usage of usesinglethreadlogin
  fixed warning
  PolCore().internal(6, scriptname) logs name and memoryusage of variables for given script into log/scriptmemory.log. Globals, locals and all current call stacks. scriptname has to be the relative path from root with ecl ending. Precondition is an existing .dbg file for the given script, this will be created by compiling the script with -x
  added PolCore().internal(5) logs memoryusage in bytes of each script instance into log/memoryusagescripts.log
  updated flyweight memory report (used for memory saving of strings) enable via ENABLE_FLYWEIGHT_REPORT cmake option
  Turns out that Windows has the same wrong format specifier
  Fix wrong format specifier for pointers (fmtlib)
  Mentioned the ENTEREDAREA and LEFTAREA events for items in the docs
  Changed core-changes.txt so that there was only one date entry for my additions.
  Fixed more documentation errors for the ListObjectsInBoxOfClass and ListItemsInBoxOfObjType functions.
  Fixed prototype in XML docs for ListObjectsInBoxOfClass and ListObjectsInBoxOfObjType
  ** Fix docs for ListObjectsInBoxOfClass and remove commented debug code.
  **** Commit for 2018-11-25 **** Added ListObjectsInBox to uo.em.
  **** Commit for 2018-11-25 **** Added ListItemsInBoxOfObjType( objtype, x1, y1, z1, x2, y2, z2, realm := _DEFAULT_REALM) to uo.em Updated core-changes.txt with the ListItemsInBoxOfObjType info. Updated uo.em docs with the ListItemsInBoxOfObjType info.
  silence old core-changes.txt format warnings
  Update web server docs.
  More gitignore
  ...
2018-12-22 10:43:32 +01:00
turleypol
4f40aa7997 removed Clib::decint and used Clib::tostring, changed Clib::hexint to
template function for all integers
2018-10-28 09:31:58 +01:00
turleypol
2ea813e69b file::readfile handles BOM 2018-06-25 19:31:00 +02:00
Gabriele Tozzi
94cd6c4f60 Merge branch 'master' of https://github.com/polserver/polserver
Finally starting to align code base :)

Conflicts:
	cmake/env/pol_global_config.h.in
	docs/docs.polserver.com/pol100/corechanges.xml
	pol-core/clib/Debugging/ExceptionParser.cpp
	pol-core/clib/pol_global_config_win.h
	pol-core/clib/strexcpt.cpp
	pol-core/doc/core-changes.txt
	pol-core/pol/module/filemod.cpp
	pol-core/pol/module/uomod2.cpp
	pol-core/pol/pol.cpp
	pol-core/pol/uimport.cpp
2018-04-02 17:05:50 +02:00
turleypol
3afc41241b
CMake on windows (#48)
CMake can now also be used for windows
2018-02-24 22:34:55 +01:00
turleypol
e54d5144ba FunctionObject doc
fixed parser to allow functionobjects directly as function paraeters
increased ecompile versionnumber to force recompilation
corrected fileaccess.cfg: without directory entry behaves like before
giving full access
2018-02-06 21:38:07 +01:00
turleypol
dbb25bdb62
Include and buildsystem cleanup (#45)
Include cleanup
Reworked buildsystem (Linux only)
Removed dynamic libs, Linux now again uses static linking (like windows)
2018-01-29 21:55:48 +01:00
turleypol
7241200761 Added fileaccess.cfg Directory entry. Limits the access to certain
directories in pkg syntax.
RunEcl loads now pkgs and fileaccess to be able to use the filemod em.
2018-01-05 13:58:51 +01:00
turleypol
798eda5b63 Cleanup of header includes. 2018-01-01 21:52:14 +01:00
Fernando Rozenblit
eb34290222 Cleanup for modules' function tables 2017-01-24 21:57:16 +01:00
turley
f9c3db9e41 Modules share the same (helper) template base class
Optimize function name search for all modules not only uo by using an additional map, replaced c array with vector for functionsdef.
Simplified pragma pack order. (MSVC version is supported in all
compilers)
Removed compilerassert.h (asserteql,..) replaced with static_assert
Removed some old #ifs
2016-12-20 23:53:32 +01:00
turley
4d9aa75f3b Corrected definition order in module defs 2016-12-14 21:50:23 +01:00
Gabriele Tozzi
b51991adb8 Minor: fixing DoxyGen warnings 2016-02-24 07:45:01 +01:00
turley
189cad3479 Formating everything
Authors are not forced to use the clang-format setting, but should
atleast be inspired by the style.
The only thing which is now not allowed are tabs for ident/alignment!
2016-02-19 19:26:35 +01:00
Gabriele Tozzi
e707a602b3 Documentation: fix doxygen warning 2016-02-19 14:57:42 +01:00
Gabriele Tozzi
b9ed9ed672 Documentation: reformatting comment block 2016-01-31 08:41:53 +01:00
Gabriele Tozzi
d1ac902926 Documentation: reformatted headers for DoxyGen 2016-01-28 14:52:40 +01:00
turley
b77a13073c corrected several data races 2015-03-14 11:45:14 +01:00
turley
7a531357fe Updated Memoryusage profiler 2015-01-19 18:18:21 +01:00
turley
2ca9cac2e0 Moved fileaccess storage 2015-01-02 16:31:10 +01:00
frozenblit
ecb13b694d Never-ending cleanup 2014-11-02 00:20:20 +01:00
turley
99d7dc3037 namespaces...finally :)
Hard part is finished every file is touched. Namespaces are currently rough named by directory name.
Maybe we could split it more
2013-12-21 09:10:46 +00:00
turley
4c7f70fc79 first version of a generic message_queue (currently not lockfree, need to test more)
replaced old auto_ptr with unique_ptr
2013-09-13 18:07:19 +00:00
turley
1fdb8e2bf0 added filemod to runecl
performs no FileAccess checks
2011-12-30 15:20:36 +00:00
frozenblit
ddf747fbcf mf_LogToFile: just for completeness, check whether strftime succeeded. 2011-01-07 16:16:10 +00:00
turley
5470c07893 finished xml reading/writing 2010-09-06 12:35:46 +00:00
turley
161ec8c190 started xml file parsing/writing
currently only parsing works
2010-08-25 11:53:14 +00:00
frozenblit
eb61009c6e Fixed some possibilities of leaking if an exception was thrown and a few other warnings (all the rest, code analysis) 2010-07-10 20:02:50 +00:00
turley
e10cd27cea sync: shini - long to int (prerequisit for 64-bit) 2010-03-29 14:52:03 +00:00
turley
1e73d26f5f simplified listdir 2009-12-18 15:10:35 +00:00
turley
6a0267ac9b damn line endings 2009-12-18 13:24:15 +00:00
turley
e25d04af2b added
CreateDirectory( dirname );
ListDirectory( dirname, extension := LISTDIR_ALL_FILES, listdirs := LISTDIR_DONT_LIST_DIRS );
2009-12-18 10:56:15 +00:00
turley
ff4936f20f more var scope cleanup 2009-10-07 11:47:42 +00:00
muaddib_pol
c301d80817 + code organizational updates in the modules
+ Updated to-do and post-build
+ Renamed the mkdist7 and .vc7 since works on vc9 too just fine.
2009-09-06 21:42:46 +00:00
muaddib_pol
49072c3c41 + To-Do file updates
+ Beginning of Mobile and Module source file organization
+ Makefile.Gcc updates
2009-09-06 14:11:24 +00:00
Renamed from pol-core/pol/fileaccess.cpp (Browse further)