Bit Blot Forum
Aquaria => Modding => Topic started by: ryos on January 12, 2009, 03:58:40 am
-
As per DangerMouse's request, here's a new thread about the new wiki. The old thread for the old wiki was here (http://www.bit-blot.com/forum/index.php?topic=447.0). Access the new wiki here (http://aquariawiki.ryanballantyne.name/wiki/index.php). And, uh, have fun?
-
Maybe you should change the name to "Aquaria Modding Wiki"? Or are there plans to include the normal wiki stuff too?
Sorry if this is already explained in another topic, since I'm not into modding I only read the releating topics from time to time...
-
Thanks Ryos.
-
I see little reason to limit the scope to modding, beyond avoiding stepping on the other wiki's toes. And if I were running the strategy wiki, I wouldn't mind an upstart with a broader scope competing for information...but that's me, and I'm willing to listen to reason. Do we know who started the strategy wiki? I'd love to hear what they think.
-
(cur) (last) 22:03, 12 December 2007 Ixis (Talk | contribs) (New page: {{stub}} {{needinfobox}} {{needcat}} {{Header Nav|game={{subst:PAGENAME}}|num=0}} {{Infobox |title=Aquaria |image= |developer=Bit-Blot |publisher=Indie |released=12/07/07 |genre=Action Adv...)
(emphasis mine)
The first few main page edits are attributed to 'Ixis', a user that apparently doesn't exist at StrategyWiki (though may have at one point, I don't know enough about Wikis to say). However, there is certainly an Ixis here, though they appear not to have been active since Feb 08.
Personally, I've made a few edits on SW and contemplated several more. But I'm perfectly agnostic about it. If this community would rather dump all data into a single wiki I'm fine with that. I'm definitely not keen on replicating the data in a second location though, that would be obscene.
-
Thank you very much for this, Ryos! I love all the function documentation, and I'll definitely be adding descriptions if no one beats me to it. They were very nice to have last weekend while I was mucking about with Lua for the first time.
As for the content, I'd be happy either way.
-
I see little reason to limit the scope to modding, beyond avoiding stepping on the other wiki's toes.
I see no problem in extending the new wiki beyond modding, but pragmatically thinking, I also see no reason to duplicate the information that is already available on StrategyWiki. It might even be a good idea to put a link to the Aquaria page on StrategyWiki on the main page, just so that visitors know it's there.
-
I've already done that. They get picky about external links there, so I made an external link page in the appendices that includes a link to the new one.
Unless they've deleted that too. I haven't looked today. ???
-
I can understand why they would be cautious about links - somebody could post a link to an infected or fake site.
-
I think they're more concerned about 'style'. Basically they want external links in their own page I think. I assume they have reasons.
-
I like the new wiki, and I've added some info, but now I have some questions. My edit caused the function to run beyond the edge of its allotted box on a 1280-wide screen in FireFox3, so I put in a carriage return and added some white space to make it more readable, since Lua doesn't seem to care about white space within function calls. The function I did this to was setControlHint() (http://aquariawiki.ryanballantyne.name/wiki/index.php/Uncategorized_Functions#setControlHint).
My questions after making the change are:
1. For long functions like this, should we put in carriage returns, and if so, is there a characters-per-line limit we should go by, and should we put an ellipsis or something at the end of each broken line? If Lua has a line-continuation character, that might be good to use so people can copy+paste+edit more directly.
2. Is it okay to add white space like I did? I know some languages are very picky, and I'm new to Lua, but spaces don't seem to mess up my function calls.
3. If you refer to a function call in the text portion of a topic, should you write it like "myFunction", "myFunction()", or "myFunction(...)"? In my case, I put the ellipsis there since calling it without parameters crashes Aquaria. Not that it would have been very useful if it didn't crash, but still.
4. Should optional parameters be indicated somehow in the function line? For example:
setControlHint (string text, [boolean leftButton], [boolean rightButton], [boolean middleButton],
[number time], [string texture], [number songID], [number scale])
setControlHint (string text[, boolean leftButton[, boolean rightButton[, boolean middleButton[,
number time[, string texture[, number songID[, number scale]]]]]]])
5. Syntax highlighting would be nice, even just for indicating variable types, but I doubt it would be worth it to do it manually. If you're willing and/or able, there's something like this (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi) that could be used, I think. If it's a pain to add or you don't want it in for other reasons, don't worry about it.
-
1. For long functions like this, should we put in carriage returns, and if so, is there a characters-per-line limit we should go by, and should we put an ellipsis or something at the end of each broken line? If Lua has a line-continuation character, that might be good to use so people can copy+paste+edit more directly.
Lua does not care about line breaks in most cases, so this is perfectly fine. There also is no line-continuation character, because Lua simply does not need one. (The cases where a line break is significant in Lua are rather esoteric.)
2. Is it okay to add white space like I did? I know some languages are very picky, and I'm new to Lua, but spaces don't seem to mess up my function calls.
Lua cares about spaces and tabs even less than it cares about line breaks. Adding white space is never an issue, leaving it out only in some cases. In particular, if you use .. (the string concatenation operator) to concatenate two number (they will be converted to strings implicitly), you may not leave out the white space between the first number and the .. operator:1 .. 2 -- gives "12"
1..2 -- syntax error, as Lua considers the first . to be a part of the first number (1.).
3. If you refer to a function call in the text portion of a topic, should you write it like "myFunction", "myFunction()", or "myFunction(...)"? In my case, I put the ellipsis there since calling it without parameters crashes Aquaria. Not that it would have been very useful if it didn't crash, but still.
I usually go with "myFunction" or - if I want to stress that I'm talking about a function - "myFunction()". If you want to use it in a script, you should look at the signature instead of just copying a reference from some explanatory text anyway.
4. Should optional parameters be indicated somehow in the function line?
The practice so far has been to specify the default value of an optional parameter using the "Type name = value" notation. In cases where I wasn't sure about the default value, I have used a question mark ("Type name = ?").
-
I just tried signing up but I get a MediaWiki internal error.
Danger Mouse, you said you had copies of all the old stuff, have you put any of that up?
-
That clears up everything. Thanks!
-
5. Syntax highlighting would be nice, even just for indicating variable types, but I doubt it would be worth it to do it manually. If you're willing and/or able, there's something like this (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi) that could be used, I think. If it's a pain to add or you don't want it in for other reasons, don't worry about it.
I installed that extension a while ago, based on feedback from Titch. ;)
-
I just tried signing up but I get a MediaWiki internal error.
Danger Mouse, you said you had copies of all the old stuff, have you put any of that up?
Can you give more detailed steps to reproduce that? I just created a dummy account and it worked fine...
-
I just click the "login / create account" link and it immediately gives this error:
MediaWiki internal error.
Original exception: exception 'MWException' with message 'SkinTemplate::makeTalkUrlDetails given invalid pagename User:' in /f1/content/aquariawiki/public/wiki/includes/SkinTemplate.php:619
Stack trace:
#0 /f1/content/aquariawiki/public/wiki/includes/SkinTemplate.php(559): SkinTemplate->makeTalkUrlDetails('User:')
#1 /f1/content/aquariawiki/public/wiki/includes/SkinTemplate.php(434): SkinTemplate->buildPersonalUrls()
#2 /f1/content/aquariawiki/public/wiki/includes/OutputPage.php(821): SkinTemplate->outputPage(Object(OutputPage))
#3 /f1/content/aquariawiki/public/wiki/includes/Wiki.php(337): OutputPage->output()
#4 /f1/content/aquariawiki/public/wiki/index.php(94): MediaWiki->finalCleanup(Array, Object(OutputPage))
#5 {main}
Exception caught inside exception handler: exception 'MWException' with message 'SkinTemplate::makeTalkUrlDetails given invalid pagename User:' in /f1/content/aquariawiki/public/wiki/includes/SkinTemplate.php:619
Stack trace:
#0 /f1/content/aquariawiki/public/wiki/includes/SkinTemplate.php(559): SkinTemplate->makeTalkUrlDetails('User:')
#1 /f1/content/aquariawiki/public/wiki/includes/SkinTemplate.php(434): SkinTemplate->buildPersonalUrls()
#2 /f1/content/aquariawiki/public/wiki/includes/OutputPage.php(821): SkinTemplate->outputPage(Object(OutputPage))
#3 /f1/content/aquariawiki/public/wiki/includes/Exception.php(150): OutputPage->output()
#4 /f1/content/aquariawiki/public/wiki/includes/Exception.php(174): MWException->reportHTML()
#5 /f1/content/aquariawiki/public/wiki/includes/Exception.php(260): MWException->report()
#6 /f1/content/aquariawiki/public/wiki/includes/Exception.php(303): wfReportException(Object(MWException))
#7 [internal function]: wfExceptionHandler(Object(MWException))
#8 {main}
-
This is just a shot in the dark, but a quick google of the error turned up a forum post from someone who was having the same error because they'd created an account with a tag in the name. However, the user name reported for your error is empty. I therefore suspect that the software may have given you a cookie that confuses itself into thinking you're logged in, even though you don't yet have an account.
Try clearing your cache and cookies (or, if you don't want to lose all your cookies, perhaps try it in a different browser or on a different computer).
-
Checked my cookies - don't have any for that site
Tried another browser - same thing
Odd
Well I'll just post these notes I made a while ago on the elementeffects file if someone else wants to add it to the wiki. Sorry I haven't really explained each value much and I don't remember it all now anyways ::)
EFX_ALPHA
Transparency Type
0 = normal
1 = additive
2 = inverted
Transparency Level 1 (0 to 1)
Transparency Level 2 (0 to 1)
Speed (higher is slower)
Repeat (-1 = infinite)
Fade Back and Forth
0 = False
Non-zero = True
EFX_WAVY
Rigidity of attached end (min value = 2)
Unknown
Attached at
0 = bottom
Non-zero = top
EFX_SEGS
Horizontal Segments (min value = 2)
Vertical Segments (min value = 2)
Horizontal Frequency (0 to 2pi)
Vertical Frequency (0 to 2pi)
Horizontal Amplitude
Vertical Amplitude
Speed
Stretch Horizontally
0 = False
Non-zero = True
-
OK Guy, here's another shot in the dark: what locale is your computer set to? See, I removed all unnecessary localizations from the wiki to save space, but if the software tries to auto-detect a localization based on your computers' locale setting, then maybe those localizations weren't so unnecessary after all.
In any case, I've inserted some logging code into the MediaWiki code that should hopefully help me understand what's going on. Would you mind clicking that link again so the error gets recorded in the log?
Thanks, and sorry about all this. This error has me stumped.
-
Okay, clicked it again a few times. Bad news though: I changed my locale to US and tried again but found every page was now giving the same error! Changing my locale back again didn't fix it.
-
Huh. Unfortunately, the logging code told me nothing I didn't already know. I'd have to dive deeper into the code to really deduce the cause of the problem. But, since removing those locale files was pretty much the only non-standard change I made to the installation, I'll just put them back and see what that does. Does it work now?
-
Nope :(
-
OK. Here's what we know about the issue so far:
You know how there are three links at the top right: User page for your IP, talk page for your IP, and Log in / create user? The code that's throwing the exception appears to be trying to generate the link to the user page for your IP address. Instead of getting "User:x.x.x.x" like it's supposed to, the function receives just "User:". It then performs a series of checks, one of which is to identify links to namespaces with no parameters, like "User:" is, so that check fails and an exception is thrown.
What this says to me is that the software is either unable to obtain your IP address, or doesn't like what it gets and so discards it out of hand before it even reaches the stage of generating links for that toolbar.
When you go to showmyip.com (http://showmyip.com), is there anything odd about your IP? Are you, perhaps, using IPv6? (Not sure how complete MediaWiki's IPv6 support is, although I did see some references to it in the code so at least some is ther.e)
-
showmyip can read my IP fine. I'm using an Airport Extreme which does IPv6 tunneling. I've just tried turning it off and other stuff but nothing changes. Do I need any ports forwarded?
-
<snip>
-
I added some new pages to the modding wiki today. I've put up tutorials on how to get functional singbulbs and healthplants into your mod. They're pretty simple, but didn't seem to be documented anywhere. A day or two ago, I added some casual tutorial-like stuff to the List of Nodes as well. Hope this proves helpful to people (like myself) just getting their feet wet when it comes to modding Aquaria.
-
Thanks a lot, it is a cool addition :)
-
so maybe i am to dump but i didn“t get it working right now. were did i install that wiki? thanx
-
Maybe some have noticed, but the wiki appears to be down. It got a lot of spam, and I deleted it. I also switched the server to use the latest version of PHP as a blanket precaution against intrusion, and now it's not loading anymore. I intend to update to the most recent version of MediaWiki, and also look into what antispam provisions I can put up.
Unfortunately, I'm quite busy right now, and I need to know how urgent it is that I fix things. Was anyone even still using it?
-
Maybe some have noticed, but the wiki appears to be down. It got a lot of spam, and I deleted it. I also switched the server to use the latest version of PHP as a blanket precaution against intrusion, and now it's not loading anymore. I intend to update to the most recent version of MediaWiki, and also look into what antispam provisions I can put up.
Unfortunately, I'm quite busy right now, and I need to know how urgent it is that I fix things. Was anyone even still using it?
I was using it pretty extensively... but I still am, so don't hurry on my account! :P I've tested it on IE8.0.76, Firefox 4.0, and Safari 5.0.4--it seems to be working just fine in all of them. It's not just loading cached pages, either; I've tried loading pages I hadn't visited before and clearing my cache, and neither managed to break the site on my end. Down For Everyone Or Just Me doesn't see any problems with it either.
--Ah! I see the problem! It doesn't work at all if you're logged in! I created an account to test if the edit functionality still worked, and found to my surprise that not only could I not make edits, I couldn't load any pages at all. It just kept giving me the same error message:
Warning: Parameter 2 to Parser::parse() expected to be a reference, value given in /f2/aquariawiki/public/wiki/includes/StubObject.php on line 58
Fatal error: Call to a member function getCacheTime() on a non-object in /f2/aquariawiki/public/wiki/includes/Article.php on line 3387
... but then I hit the back button, logged out, and was again able to access the wiki without difficulty.
Fortunately, this is not exactly a pressing issue. No one has made any changes to the wiki in over nine months, so clearly anyone else who's been using it has been using it solely as a reference. Of course, I'm not counting all of your diligent spam management work in that... but since the edit function is members-only and being logged in breaks the site, no one can add spam to it, so it seems you don't even need to do that anymore! ^-^
-
Yes!!! I've been referring to it several times a day. I'm glad a printed off a bunch of the topics. Please don't eliminate it, or I'll have a much harder time finishing Labyrinth, which is coming along fairly steadily.
Frances
-
I switched the server back to PHP 5.2, and it seems to be working now. That'll have to do until I have time to update MediaWiki.
-
Inyssius, I appreciate you attempting to fight spam by redirecting it to a "Spam" page, but in the end this just makes more work for me since I have to delete both the original spam and the redirect. So, please stop. :)
If you (or anyone else for that matter) would like to volunteer as a spam fighter, I could give you delete rights so you can delete the spam properly.
-
Inyssius, I appreciate you attempting to fight spam by redirecting it to a "Spam" page, but in the end this just makes more work for me since I have to delete both the original spam and the redirect. So, please stop. :)
If you (or anyone else for that matter) would like to volunteer as a spam fighter, I could give you delete rights so you can delete the spam properly.
Aww, I liked the Spam page. It had a gorilla in it. :P
(Yeah, delete rights would be awesome.)