ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
Modified LuaJIT library

« Previous 10 events | 1 2 3 4 5 6 | Next 10 events »| All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  18:59:27  17 March 2014
profilee-mailreply Message URLTo the Top
Decane
Senior Resident
 

 
On forum: 04/04/2007
Messages: 1706
Xetrill, I would like to include your work in the next version of the SRP (as an optional feature). Do you have any objections to this?

On a related note: how long do you estimate you will spend with this project? Is it an 'eternity project' that you will keep working on indefinitely, or do you have a definite end-point in mind at which the project will be 'finished'?
  20:13:30  17 March 2014
profilee-mailreply Message URLTo the Top
Xetrill
(Senior)
 
On forum: 07/08/2008
Messages: 129

---QUOTATION---
Xetrill, I would like to include your work in the next version of the SRP (as an optional feature). Do you have any objections to this?
---END QUOTATION---


No objections, though you might want use a future version (could be coming anytime now).


---QUOTATION---
On a related note: how long do you estimate you will spend with this project? Is it an 'eternity project' that you will keep working on indefinitely, or do you have a definite end-point in mind at which the project will be 'finished'?
---END QUOTATION---


I kind of like this project, besides even if I would abandon it, I would release all the source code before doing so. Worst case scenario you would need someone else who understands C/C++ (both are used) to continue.
But, I don't have any plans to abandon anything, so it kinda is an 'eternity project' as you put it.

About finishing...well there are a few things I like to have first, but I don't have a road-map or anything.
But maybe a few undated milestones...
- better tracebacks, which will include local variables and upvalues, as well as base library names (instead of memory addresses).
- dynamic reusable string buffers for common operations. This is largely implemented, but my current approach may not work out.
- data structures/C++ containers, because Lua tables waste a lot of memory and things like lookup-tables (sets) are used a lot. Though, this will most likely be limited to value types, because working with reference types through the C API ends up being slower than just using Lua. This has a base implementation now. I've a sorted set which accepts numbers, which I'll benchmark for memory usage and throughput to see if this is worthwhile or not.
Here is the current lxs_conf.h (http://pastebin.com/h9he33pP) giving an overview of what I did so far.

Then there are other things I want, that do not require LuaJIT changes. For one, there really is technically no need to modify bind_stalker (and others) beyond adding a hooking mechanism.
My xs_transmutation (http://pastebin.com/hYTEmiCv) shows how I like to write mods; lines 299-301 setup everything needed. The rest is following a simple convention to receive events.
  05:33:03  3 April 2014
profilee-mailreply Message URLTo the Top
Alundaio
Sad Clown
(Resident)

 

 
On forum: 04/05/2010
Messages: 2230
I'm glad your thread wasn't lost in the abyss.
  12:53:20  3 April 2014
profilee-mailreply Message URLTo the Top
Xetrill
(Senior)
 
On forum: 07/08/2008
 

Message edited by:
Xetrill
04/03/2014 12:56:15
Messages: 129

---QUOTATION---
I'm glad your thread wasn't lost in the abyss.
---END QUOTATION---


I guess you are referring to the increasing number of times GSC domains go down these days, typically over the weekends. In that case, me too!

I think we really should consider leaving this forum behind, for good. Before the exact opposite happens. Because when that eventually happens, all will be lost, since this forum is not indexed/scraped by archive.org.

Edit: Before I forget, I changed my primary machine so development has slowed down. Because somehow there's always some trouble, always. Murphy's law I guess.
  22:17:57  3 April 2014
profilee-mailreply Message URLTo the Top
Alundaio
Sad Clown
(Resident)

 

 
On forum: 04/05/2010
 

Message edited by:
Alundaio
04/03/2014 22:20:34
Messages: 2230

---QUOTATION---

I think we really should consider leaving this forum behind, for good. Before the exact opposite happens. Because when that eventually happens, all will be lost, since this forum is not indexed/scraped by archive.org.
---END QUOTATION---



Yeah, that is why I created my own forum a year or so ago with a small cult of CoP players/modders.


---QUOTATION---
Before I forget, I changed my primary machine so development has slowed down. Because somehow there's always some trouble, always. Murphy's law I guess.
---END QUOTATION---


I know what you mean. I just recently had to re-install and had nothing but problems doing so. Microsoft products just get worse and worse; I couldn't even refresh or re-install because it said my hard drive was locked. I had to spend a day in command console and finally ended up copying the OS disk to a partition which amazingly allowed me to re-install. For whatever reason it wouldn't recognize my HDD with DVD or USB. Must be new 8.1 feature.
  19:52:17  18 April 2014
profilee-mailreply Message URLTo the Top
Xetrill
(Senior)
 
On forum: 07/08/2008
Messages: 129
I have created a github repository for this project and uploaded my code.
https://github.com/Xetrill/XsLuaJIT

I was in a rush when I did it; I got a new job. And as such was more busy than usual. Because of that the upload is as-is/was when I last worked on it and without version history. The history is missing because I use mercurial/hg personally and converting was another time strain (figuring out how).

But nonetheless, the project is simple and any C/C++ coder could just pick it up and build it straight away.
It's currently ugly since I was working on restructuring the code to be more manageable (this is where the version history would come in handy).

Well, I guess I'll be using git(hub) in the future.
  02:16:04  28 April 2014
profilee-mailreply Message URLTo the Top
Alundaio
Sad Clown
(Resident)

 

 
On forum: 04/05/2010
Messages: 2230
Do you know if there is a way to get reflection information about a class? Like what luabind class_info does? __index is a function so I'm not sure what to do about that.
  22:01:03  28 April 2014
profilee-mailreply Message URLTo the Top
Xetrill
(Senior)
 
On forum: 07/08/2008
Messages: 129
Not really...pretty sure though, that the binary was compiled with RTII enabled, which is needed for dynamic_cast and typeid in C++. But I don't know anything about how to extract that information.
If you want to look into it, it may also help to know that the compiler used was MSVC 8/2005.
  00:39:22  29 April 2014
profilee-mailreply Message URLTo the Top
Alundaio
Sad Clown
(Resident)

 

 
On forum: 04/05/2010
 

Message edited by:
Alundaio
04/29/2014 2:29:42
Messages: 2230
Thanks for the tip, but I might not need it now. There was a *cough*leak*cough* today.
  18:47:42  4 May 2014
profilee-mailreply Message URLTo the Top
smoq2
Forklift operator
(Resident)

 

 
On forum: 09/08/2008
Messages: 2433
Wow, I haven't been here for a long time. This utility is seems to be amazing. I'm going to implement it tomorrow.

Before I do, I just wanted to know what exactly did you modify regarding the package reader?

I remember that there was some "phantom" data which was added to NPC's packet on some rare occasions and packet_utils was unable to read it, breaking the "reading" order.
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2021 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.