Search found 560 matches

by Turley
Sat Nov 11, 2017 7:35 am
Forum: Scripting Help
Topic: How to disable [FindPath] xxxx in pol.log
Replies: 2
Views: 62

Re: How to disable [FindPath] xxxx in pol.log

Your LogLevel seems to be defined >=12 in the Pol.cfg
by Turley
Sun Nov 05, 2017 2:08 pm
Forum: First steps
Topic: compiling, and getting thing to work
Replies: 28
Views: 292

Re: compiling, and getting thing to work

The distro has a start here.sh but I never used it, I simply execute the stuff directly
by Turley
Sun Nov 05, 2017 10:48 am
Forum: First steps
Topic: compiling, and getting thing to work
Replies: 28
Views: 292

Re: compiling, and getting thing to work

If you have extracted the boost archive in lib try in pol-core/bin-build
./build_tools.sh -p
And rerun cmake again.
by Turley
Sat Nov 04, 2017 2:38 pm
Forum: First steps
Topic: compiling, and getting thing to work
Replies: 28
Views: 292

Re: compiling, and getting thing to work

Boost does not need to be installed, you only need to extract the archive in the libs folder, have you done that?
by Turley
Sat Nov 04, 2017 7:06 am
Forum: First steps
Topic: compiling, and getting thing to work
Replies: 28
Views: 292

Re: compiling, and getting thing to work

What is your excact error? Console log error message screenshot something like that..
by Turley
Fri Oct 13, 2017 7:12 am
Forum: Scripting Help
Topic: How can I test whether x, y, z, realm is inside a multi?
Replies: 3
Views: 73

Re: How can I test whether x, y, z, realm is inside a multi?

Yes that's exactly the function you should use:
Var ismultiloc:=listmultisinbox(x,y,z,x,y,z,realm).size()>0;
by Turley
Tue Oct 10, 2017 10:07 am
Forum: Guides
Topic: General Tips and Tricks POL Development
Replies: 15
Views: 1133

Re: General Tips and Tricks POL Development

Forget to mention "use":
The only special meaning which exists is the npc.em. you can only have them in AI scripts, the remaining are just for grouping the functions. So I see also no reason to not have them in include files. It makes no difference where they are.
by Turley
Tue Oct 10, 2017 9:58 am
Forum: Guides
Topic: General Tips and Tricks POL Development
Replies: 15
Views: 1133

Re: General Tips and Tricks POL Development

Since yukiko asks so nice I will write a bit about it :) I also do not get the second point about not including in an include. It makes in my opinion no sense to force the user of your interface to know your internal dependencies (in any language). If I want to eg kill a character which is defined a...
by Turley
Fri Sep 22, 2017 10:01 am
Forum: Development Discussion
Topic: The starthere batch files
Replies: 11
Views: 222

Re: The starthere batch files

Now I looked into ecompile.bat ;)
* The option "Compile updated scripts only." Doesn't do what the title suggests since it doesn't generate the dep files.
* Does someone really need such a long list of options? (See my post above I need maximum 2 ;) )
by Turley
Fri Sep 22, 2017 9:52 am
Forum: Development Discussion
Topic: The starthere batch files
Replies: 11
Views: 222

Re: The starthere batch files

I personally always compile with: -Au -T -D This way I never have to think about what I have to compile depending on what I changed. In case of em file changes I delete all ecls (or you could add a -f) In former days I only had additionally in my editor a shortcut to compile the current file with -f...
by Turley
Thu Sep 14, 2017 9:15 am
Forum: Development Discussion (099)
Topic: Some questions about settings in the cfg files.
Replies: 3
Views: 103

Re: Some questions about settings in the cfg files.

SingleThreadDecay: I would say the preffered setting is True. In former days or without this setting active each realm has a dedicated thread with the only purpose to iterate over the complete map to find items to destroy. With this setting active it's only one thread for all realms. ThreadDecayStat...
by Turley
Wed Sep 13, 2017 9:46 pm
Forum: Development Discussion (099)
Topic: The downloadable documentation.
Replies: 4
Views: 94

Re: The downloadable documentation.

It's a PHP file you need to execute, somehow this is I think possible I will take a look ;)
by Turley
Wed Sep 13, 2017 9:18 pm
Forum: Development Discussion (099)
Topic: The downloadable documentation.
Replies: 4
Views: 94

Re: The downloadable documentation.

It's currently a manual step via the homepage. (I updated it) thus not really possible in a nice way currently to automate it.
by Turley
Mon Sep 04, 2017 6:25 am
Forum: Bug Reports & Feature Requests
Topic: Sort out
Replies: 4
Views: 257

Re: Sort out

This is possible with a loop over all realms and listitemsinbox plus an iteration over the storage area. My opinion is that shouldn't be made easier via a core function, since this will produce a heavy load on you server till all objects gets modified/iterated. So only do this with very specific rea...
by Turley
Mon Aug 28, 2017 9:08 am
Forum: Development Discussion (099)
Topic: Resources.cfg
Replies: 27
Views: 404

Re: Resources.cfg

Ok I write it a bit more clear, as you would implement such a function in escript: Function HarvestRessource(resource, x, y, b, n, realm) Var avail_units := GetUnits(resource, x, y, realm); Var temp := avail_units / b; If (temp > n) temp := n; Endif DepleteUnits(resource, x, y, realm, temp*b); Retur...
by Turley
Sun Aug 27, 2017 8:48 pm
Forum: Development Discussion (099)
Topic: Resources.cfg
Replies: 27
Views: 404

Re: Resources.cfg

n is the first parameter m the second.
Sorry I should have used the names how they are defined in the module and not how they are internally.
So b==n and n==m
Escript version of the Formular:
a=avail_units / b
if a> n
a=n
return a*b
Hope now it's clear what every parameter means
by Turley
Sun Aug 27, 2017 11:00 am
Forum: Development Discussion (099)
Topic: Resources.cfg
Replies: 27
Views: 404

Re: Resources.cfg

If you are concerned about memory usage you should try PolCore(). internal (2); Damn I really need to give it a better name... This creates a memoryusage.log in the log folder, a CSV file basically. It's just an estimation of the ram usage each component has. (On my shard its has around 500mb missin...
by Turley
Sun Aug 27, 2017 10:16 am
Forum: Development Discussion (099)
Topic: New [unofficial] POL-CORE fork - 2017
Replies: 15
Views: 518

Re: New [unofficial] POL-CORE fork - 2017

Almost forget:
Once in the while it's important to commit some new senseless methods or members for escript to keep yukiko happy :p
by Turley
Sun Aug 27, 2017 10:14 am
Forum: Development Discussion (099)
Topic: New [unofficial] POL-CORE fork - 2017
Replies: 15
Views: 518

Re: New [unofficial] POL-CORE fork - 2017

We all more or less idle around :p
If you are to active we only feel bad ;) so beeing a core Dev does not mean you need to commit every week, what is even more important is to complain about the old school parts of the core and discuss rewrites which are way to big to ever be started :p
by Turley
Sun Aug 27, 2017 10:08 am
Forum: Development Discussion (099)
Topic: Resources.cfg
Replies: 27
Views: 404

Re: Resources.cfg

Isn't the harvest cost specific to your resource? Why not simply add one or both harvest parameters into the resource.cfg and use them in escript? This way you have all the logic in one spot. E.g: veryuniqueresource.cfg Global { Landtile/objtype definitions Maybe only very special objtypes to have f...
by Turley
Sun Aug 27, 2017 8:41 am
Forum: Development Discussion (099)
Topic: Resources.cfg
Replies: 27
Views: 404

Re: Resources.cfg

I couldn't test it on a real shard so i only tested the functionality in resource.cpp and it works as expected: You used 10 and 1 as parameter for harvesteresource() That means harvest at the cost of 10 maximum on time. The Formular is: a=avail_units / n if a> m a=m return a*n If you have eg 10 unit...
by Turley
Sun Aug 27, 2017 4:52 am
Forum: Development Discussion (099)
Topic: Resources.cfg
Replies: 27
Views: 404

Re: Resources.cfg

Why not simply use more then one Ressource unit to create one of your rare items? The parameters of Harvest() are not fixed they can be altered ;) So instead of harvest only one unit if you eg harvest 10units this should result in something like: Secondsperregrow=600 -> one unit per 10minutes One su...
by Turley
Sun Aug 27, 2017 4:30 am
Forum: Development Discussion (099)
Topic: New [unofficial] POL-CORE fork - 2017
Replies: 15
Views: 518

Re: New [unofficial] POL-CORE fork - 2017

Mmmh I remember a few patches you submitted but no request of beeing a part of the dev team. But that was the time I was pretty much focused with my limited time to code something. So if I lost/ignored that I'm sorry. But I hope it was a public mail/request so we can also blame nando and the others ...