eScript is dynamic (with struct members;) weak typed DSL when it comes to variables. It would be less stressful to newcomers if compiler wouldn't allow blank variable declaration i.e.var smthing not followed by an immediate assignment operator.
var something := struct{};
is important because it ...
Search found 97 matches
- Wed Aug 30, 2017 4:18 am
- Forum: Guides
- Topic: Struct declarations.
- Replies: 8
- Views: 34491
- Tue Aug 29, 2017 5:21 am
- Forum: Development Discussion
- Topic: The eScript style guide.
- Replies: 15
- Views: 43219
Re: The eScript style guide.
I agree that readability counts and you probably shouldn't confuse your readers with what I said.
As for assignment the need to push a combo of 3 keys to type := instead of 1 key for =
is annoying. My guess is that Eric Swanson was fond of Pascal syntax much thus the syntax. Its has some history ...
As for assignment the need to push a combo of 3 keys to type := instead of 1 key for =
is annoying. My guess is that Eric Swanson was fond of Pascal syntax much thus the syntax. Its has some history ...
- Sun Aug 27, 2017 10:32 am
- Forum: Current stable release (099)
- Topic: New [unofficial] POL-CORE fork - 2017
- Replies: 15
- Views: 42944
Re: New [unofficial] POL-CORE fork - 2017
Everything if only to keep yuki子 happy;) We may even invent methods that do a printout on which methods are absolutely senseless :pTurley wrote: Sun Aug 27, 2017 10:16 am Almost forget:
Once in the while it's important to commit some new senseless methods or members for escript to keep yukiko happy :p
- Sun Aug 27, 2017 10:02 am
- Forum: Current stable release (099)
- Topic: New [unofficial] POL-CORE fork - 2017
- Replies: 15
- Views: 42944
Re: New [unofficial] POL-CORE fork - 2017
There is no one to blame. Austin was the one who denied my request at the time and he might have had his reasons for that. It would be great to get on board!
I shall check hard if I can balance my free-time "checkbook" (guess you don't need an idling member).
Thank you for the invitation,
--cheers
I shall check hard if I can balance my free-time "checkbook" (guess you don't need an idling member).
Thank you for the invitation,
--cheers
- Sun Aug 27, 2017 4:06 am
- Forum: Development Discussion
- Topic: The eScript style guide.
- Replies: 15
- Views: 43219
Re: The eScript style guide.
I think its brilliant that you made this coding style. I would probably succumb to using one of the pre-existing code convention (something akin to PEP8), yet a fresh look yields nicer things!
Note: spells that are cast via conventional means (like a spellbook) would also have spellId argument ...
Note: spells that are cast via conventional means (like a spellbook) would also have spellId argument ...
- Sun Aug 27, 2017 3:14 am
- Forum: Current stable release (099)
- Topic: New [unofficial] POL-CORE fork - 2017
- Replies: 15
- Views: 42944
Re: New [unofficial] POL-CORE fork - 2017
There is a source:
https://bitbucket.org/ivanovar-08/polcore_git
Its not ready for public consumption I guess though I try to make it so.
It compiles and everything, but its kind of a transition build and I do a lot
of experimental stuff that could make the more CPU demanding (depending on usage ...
https://bitbucket.org/ivanovar-08/polcore_git
Its not ready for public consumption I guess though I try to make it so.
It compiles and everything, but its kind of a transition build and I do a lot
of experimental stuff that could make the more CPU demanding (depending on usage ...
- Sun Jul 16, 2017 4:19 am
- Forum: Current stable release (099)
- Topic: New [unofficial] POL-CORE fork - 2017
- Replies: 15
- Views: 42944
Re: New [unofficial] POL-CORE fork - 2017
Thanks for the note Turley. I shall try that.
Its became increasingly hard to catch you at IRC last I checked that was probably like 3 years ago.
IS work killing you?
--cheers
Its became increasingly hard to catch you at IRC last I checked that was probably like 3 years ago.
IS work killing you?
--cheers
- Sat Jul 15, 2017 7:40 pm
- Forum: Current stable release (099)
- Topic: New [unofficial] POL-CORE fork - 2017
- Replies: 15
- Views: 42944
Re: New [unofficial] POL-CORE fork - 2017
To be frank I am not quite following with sweetFx thing for which I apologize.
Perhaps you could elaborate on that.
There is hefty of changes from the original git core which make the scripting routine
itself differ tremendously as I always aim for rapid development with less effort (for scripters ...
Perhaps you could elaborate on that.
There is hefty of changes from the original git core which make the scripting routine
itself differ tremendously as I always aim for rapid development with less effort (for scripters ...
- Sat Jul 15, 2017 10:41 am
- Forum: Current stable release (099)
- Topic: New [unofficial] POL-CORE fork - 2017
- Replies: 15
- Views: 42944
New [unofficial] POL-CORE fork - 2017
I am working on a new new POLocre99 fork, base off the latest Git version.
It has several enhancements official version that didn't make it to POL:
- Numerous addition ways to work with arrays and strings:
array shuffling, case insensitive String compare, bulk array filtering.
- Unicode problem ...
It has several enhancements official version that didn't make it to POL:
- Numerous addition ways to work with arrays and strings:
array shuffling, case insensitive String compare, bulk array filtering.
- Unicode problem ...
- Tue Jul 21, 2015 9:43 pm
- Forum: POL Core Patch Submissions
- Topic: new array method - cycle([shift])
- Replies: 4
- Views: 96642
Re: new array method - cycle([shift])
Yes, std::rotate seems to be doing the trick with a bit of tinkering.
I don't suppose I'll do another patch though. The mechanics got exceedingly complicated
since you moved to github, and you seem to know your magic well without me.
case MTH_CYCLE:
if (name_arr.empty())
{
int shift_by ...
I don't suppose I'll do another patch though. The mechanics got exceedingly complicated
since you moved to github, and you seem to know your magic well without me.
case MTH_CYCLE:
if (name_arr.empty())
{
int shift_by ...
- Tue Jul 21, 2015 8:19 pm
- Forum: POL Core Patch Submissions
- Topic: new array method - cycle([shift])
- Replies: 4
- Views: 96642
Re: new array method - cycle([shift])
Thats a terrific suggestion, thanks Turley.
- Sun Jul 19, 2015 4:07 am
- Forum: POL Core Patch Submissions
- Topic: new array method - cycle([shift])
- Replies: 4
- Views: 96642
new array method - cycle([shift])
array.cycle() will move array backwards or forwards in-place as it were a conveyor belt.
{1, 2, 3}.cycle()
Will make it:
{3, 1, 2}
Accepts a negative value as a shift to move different direction.
* Currently only shift by 1 element is supported.
The performance probably is horrible like O( 2*N ...
{1, 2, 3}.cycle()
Will make it:
{3, 1, 2}
Accepts a negative value as a shift to move different direction.
* Currently only shift by 1 element is supported.
The performance probably is horrible like O( 2*N ...
- Sun Jul 19, 2015 4:01 am
- Forum: POL Core Patch Submissions
- Topic: string.format() patch2 + bugfix
- Replies: 2
- Views: 24668
Re: string.format() patch2 + bugfix
Not much into BOOST yet, but I study it.
The thing is that you have to incorporate the patch somehow.
The previous version has a bug.
I shall use your suggestion about size_t for the next submissions.
I don't even have 64bit version thus these things happen.
The thing is that you have to incorporate the patch somehow.
The previous version has a bug.
I shall use your suggestion about size_t for the next submissions.
I don't even have 64bit version thus these things happen.
- Fri Jun 26, 2015 5:21 am
- Forum: POL Core Patch Submissions
- Topic: string.format() patch2 + bugfix
- Replies: 2
- Views: 24668
string.format() patch2 + bugfix
* Now actually faster than string concatenation in eScript
* Fixes a bug where {:d} formating could cause an arbitrary number shown instead of a real value
* tag errors are slightly more intuitive and compact.
* Fixes a bug where {:d} formating could cause an arbitrary number shown instead of a real value
* tag errors are slightly more intuitive and compact.
- Wed Oct 02, 2013 5:12 am
- Forum: POL Core Patch Submissions
- Topic: SubStrReplace doesn't work if start+length>=len(string)
- Replies: 0
- Views: 23696
SubStrReplace doesn't work if start+length>=len(string)
SubStrReplace (str, replace_with, start, length:=0);
doesn't work if start + length >= the length of the string
which should be perfectly legal for POL since its indexations are 1-based
such that:
var myString := "Hello, World!" ;
SubStrReplace (myString , "Hell!" , 7, length:=6);
>> Would ...
doesn't work if start + length >= the length of the string
which should be perfectly legal for POL since its indexations are 1-based
such that:
var myString := "Hello, World!" ;
SubStrReplace (myString , "Hell!" , 7, length:=6);
>> Would ...
- Fri Sep 06, 2013 7:04 pm
- Forum: Current stable release (099)
- Topic: Problem starting POL
- Replies: 33
- Views: 40024
Re: Problem starting POL
em functions are executed by the core thus aren't included into .ecl. I believe core does a map lookup for every call to a module function with a separate map per module. I am not sure if using additonal modules incur any performance penalty. In theory UO.EM has substantially bigger number of ...
- Sat Aug 31, 2013 5:22 pm
- Forum: Current stable release (099)
- Topic: Problem starting POL
- Replies: 33
- Views: 40024
Re: Problem starting POL
I wonder if bundling all functions in a single em would be substantially slower. I'd probably try to push these to a single hash-map.
- Sat Aug 31, 2013 5:20 pm
- Forum: Current stable release (099)
- Topic: Isn't POL multiprocessor aware?
- Replies: 3
- Views: 4652
Re: Isn't POL multiprocessor aware?
Hey Xeon,
Nice to see people are still active on Zulu scene.
I think true multi-core isn't an easy feat to accomplish with reference counting.
To be honest I don't know much about what happens under the hood but it might require
an exquisite locking mechanism.
There is also other nice language ...
Nice to see people are still active on Zulu scene.
I think true multi-core isn't an easy feat to accomplish with reference counting.
To be honest I don't know much about what happens under the hood but it might require
an exquisite locking mechanism.
There is also other nice language ...
- Sat Aug 24, 2013 11:09 pm
- Forum: Current stable release (099)
- Topic: my stable binaries [+]
- Replies: 9
- Views: 19795
my stable binaries [+]
I want to contribute my stable POL099 binaries.
- Based on the latest beta core release (rev. 180) that is proven to be VERY STABLE.
- Back-porting the majority of SVN fixes: MySQL/XML/Numerous memory leaks are fixed
- Some additional functionality added by me (see core-backport.txt)
- added some ...
- Based on the latest beta core release (rev. 180) that is proven to be VERY STABLE.
- Back-porting the majority of SVN fixes: MySQL/XML/Numerous memory leaks are fixed
- Some additional functionality added by me (see core-backport.txt)
- added some ...
- Mon Apr 15, 2013 1:50 am
- Forum: POL Core Patch Submissions
- Topic: ItemRef hp member rollover fix
- Replies: 3
- Views: 26446
ItemRef hp member rollover fix
Fixes an old bug when .hp member rolls over for negative values as referred by RusseL:
http://forums.polserver.com/viewtopic.p ... 187#p20187
Use at your own discretion.
http://forums.polserver.com/viewtopic.p ... 187#p20187
Use at your own discretion.
- Sun Apr 14, 2013 3:12 am
- Forum: POL Tools
- Topic: A question about source code editors/IDEs
- Replies: 5
- Views: 29607
Re: A question about source code editors/IDEs
I use EmEditor . It has code completion as well as easy customizable code highlighting, and an extensive snippets support. It also allows you to compile scripts not leaving the IDE as well. No highlighting glitches or troubles with changing fonts.
I tried UltraEdit , but its a bit heavy for the ...
I tried UltraEdit , but its a bit heavy for the ...
- Sun Apr 14, 2013 3:08 am
- Forum: POL Core Patch Submissions
- Topic: string.format()
- Replies: 11
- Views: 34624
Re: string.format()
What with all this positive attitude all of a sudden=) Anyway its done now.
- Sat Apr 13, 2013 12:36 am
- Forum: POL Core Patch Submissions
- Topic: string.format()
- Replies: 11
- Views: 34624
Re: string.format()
I think I'll be using python syntax very close to what Yukiko has suggested. I also have an idea for extending arrays API with 2 more calls.
array.reject_by(membername, membervalue) : new Array
array.reject_by(membername) : new Array
array.collect_by(membername) : new Array
array.collect_by ...
array.reject_by(membername, membervalue) : new Array
array.reject_by(membername) : new Array
array.collect_by(membername) : new Array
array.collect_by ...
- Sun Apr 07, 2013 7:04 pm
- Forum: Scripting Help
- Topic: Multiple TextEntries
- Replies: 5
- Views: 5460
Re: Multiple TextEntries
Assuming you are using new gumps by Austin. Feed your text_entries to a dictionary :
var gump := GFCreateGump(10, 40, 200, 240);
GFResizePic(gump, 0, 0, 2600, 0, 0 ); // just a background
var text_etries := dictionary {};
GFGumpPic( gump, x, y-1, 0x98d ); // medium sized background
text ...
var gump := GFCreateGump(10, 40, 200, 240);
GFResizePic(gump, 0, 0, 2600, 0, 0 ); // just a background
var text_etries := dictionary {};
GFGumpPic( gump, x, y-1, 0x98d ); // medium sized background
text ...
- Thu Apr 04, 2013 9:38 am
- Forum: POL Core Patch Submissions
- Topic: string.format()
- Replies: 11
- Views: 34624
Re: string.format()
I shall look into it, but I think I'd replicate some preexisting syntax like of a .Net or something, perhaps Python's.