Talk:Lua and UI Reference (Civ5): Difference between revisions

From Civilization Modding Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
Line 18: Line 18:


:To be short, no, you would better rewrite everything from scratch. The wiki, lua and XML parser are good to throw out and you would need another XML parser, a Python parser and a C++ one (the funniest of all, do not ever start this if you are depressive) since there is likely to be none available for dotnet (one for C++/CLI only). You could salvage the type inference solver but it's 20% of the work and you would still have to revisit them. All in all I think it would by a project 150% as big as the current one. Count me out and anyway I do not know the civ4 platform. Now if you're interested I am ready to lend you the code but but be aware this would be a daunting amount of work.
:To be short, no, you would better rewrite everything from scratch. The wiki, lua and XML parser are good to throw out and you would need another XML parser, a Python parser and a C++ one (the funniest of all, do not ever start this if you are depressive) since there is likely to be none available for dotnet (one for C++/CLI only). You could salvage the type inference solver but it's 20% of the work and you would still have to revisit them. All in all I think it would by a project 150% as big as the current one. Count me out and anyway I do not know the civ4 platform. Now if you're interested I am ready to lend you the code but but be aware this would be a daunting amount of work.
:Now you could just parse the C++ part. If you can find a good parser that produces a quality expression tree, it would be pretty easy due to the static nature of this language. However you will have to use the same language as this parser in order to get an object expression tree to manipulate.
:--[[User:DonQuich|DonQuich]] 20:56, 22 September 2012 (UTC)
:--[[User:DonQuich|DonQuich]] 20:56, 22 September 2012 (UTC)

Latest revision as of 20:59, 22 September 2012

Stuff from the old Lua page not yet in the new one, recorded here for reference (from Lua and UI Reference (old version)):

--Deanej 02:11, 22 September 2012 (UTC)

  • Regarding the second link, it is now obsolete as ModBuddy automatically updates the game when you build. The second trick is still valid but not worthwhile enough while the user is already drown under informations, I need a way to address that.
  • Regarding the third link, it was incomplete, it is now mainly obsolete since G&K and I plan to write a "persistent data storage" article to cover the topic anyway.
  • Regarding the first link I still haven't decided: most of the informations presented in it are general ones that add a lot of clutter to the post, some may be obsolete (I need to test a few things), and it does not address the main and harder points. Finally I may write an article dedicated to map scripts to replace it.
  • Regarding the content of the other sections, I already scanned all of them and created a list of the items to salvage on User:DonQuich. ;)
--DonQuich 08:18, 22 September 2012 (UTC)

To be honest, I mainly put that here so I wouldn't forget about the Lua and UI Reference (old version) page when the section stabilizes; at that point we can delete the orphan pages left from the current transition. Feel free to use the Lua and UI Reference (old version) page as a scratch pad for anything that needs to be moved over and to delete any links from there that are no longer needed. On an unrelated note, do you think your bot could be adapted in any way for Python/SDK stuff on the civ4 side? Many of those pages have yet to be created themselves. --Deanej 20:29, 22 September 2012 (UTC)

To be short, no, you would better rewrite everything from scratch. The wiki, lua and XML parser are good to throw out and you would need another XML parser, a Python parser and a C++ one (the funniest of all, do not ever start this if you are depressive) since there is likely to be none available for dotnet (one for C++/CLI only). You could salvage the type inference solver but it's 20% of the work and you would still have to revisit them. All in all I think it would by a project 150% as big as the current one. Count me out and anyway I do not know the civ4 platform. Now if you're interested I am ready to lend you the code but but be aware this would be a daunting amount of work.
--DonQuich 20:56, 22 September 2012 (UTC)