Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVFANATICS > Site Feedback

Notices

Reply
 
Thread Tools
Old Aug 03, 2012, 03:27 AM   #1
DonQuiche
King
 
DonQuiche's Avatar
 
Join Date: May 2011
Posts: 955
Wiki conventions

Hello.

I may add some content to the modiki for civ5, regarding the LUA API. Currently there is no content on this topic aside of a few tutorials, so there is no homogeneity problem.

Now the conventions on the wiki for civ4 and python were to use arrays. Here is an example. I think it is far less readable than the 2k wiki for example. Besides this latter convention allows us to detail some functions and provide examples, while the page summary still provides a simple and compact listing of all of the API functions.

So, do I need to stick to the python convention or may I just introduce a new one for LUA?
__________________
Reseed! Preview and regenerate map in-game.
Ingame Editor (IGE): An in-game editor for terrain, units, cities, civilizations, etc.
Lua and UI reference
DonQuiche is offline   Reply With Quote
Old Aug 03, 2012, 05:53 AM   #2
The_J
Say No 2 Net Validations

 
The_J's Avatar
 
Join Date: Oct 2008
Location: Germany / Netherlands
Posts: 25,002
Images: 51
I don't see a problem with using another system.
__________________
Civ4-BtS-Mod "Mars, Now!"


Steam eats the souls of little gamers!!!
The_J is offline   Reply With Quote
Old Aug 03, 2012, 08:47 PM   #3
deanej
Deity
 
deanej's Avatar
 
Join Date: Apr 2006
Location: New York State
Posts: 4,859
You can use a new one; the XML files don't follow the exact same system between civ5 and civ4 either.

One reason why everything's blank there is because I wasn't sure what exactly to include. The Lua stuff in civ5 has a different enough role from civ4's python that even listing the files wasn't an easy first step (since some are in the XML folder or something like that).
deanej is offline   Reply With Quote
Old Aug 03, 2012, 09:21 PM   #4
DonQuiche
King
 
DonQuiche's Avatar
 
Join Date: May 2011
Posts: 955
Thank you for your answers.
I guess I will setup a litte tool to collect infos from the 2kwiki and LUA logs, then automatically format them, in order to produce an up-to-date reference (the 2kwiki was not updated after G&K). After that I will manually edit things.
Well, once I am done with my current modding session.
__________________
Reseed! Preview and regenerate map in-game.
Ingame Editor (IGE): An in-game editor for terrain, units, cities, civilizations, etc.
Lua and UI reference
DonQuiche is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVFANATICS > Site Feedback > Wiki conventions

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Advertisement

All times are GMT -6. The time now is 07:32 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR