Go Back   the Magicball Network > Forums > MBN Main Forums > General

Welcome to the Magicball Network.

You are currently viewing our site as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

General The general chatting goes on in here. That means talk about the LBA games and its world.

Reply
 
Thread Tools
  #326  
Old 2011-10-17, 16:32
J McKalling's Avatar
J McKalling J McKalling is offline
Magic Ball GrandMaster
 
Join Date: Aug 2009
Location: Dreamland
Posts: 2,721
Because require() is a language construct and not a function. Language constructs are evaluated by the parser, which is called compile-time. This happens before runtime, where code is actually executed. It's just a little more information about how it works, but it shows it may be a better choice to use variables instead of require(), for conditional effects.

Which is why I suggested arrays.
__________________
Quote:
Visit the Twinsuniverse to find everything about the LBA universe!

Threads: News, Introduction, Discussion, Bugs collection || Content: Characters, Enemies, Items
Words come in all sizes. But even if they fit you,
they might not come at appropriate times.

Good for everyone is finding yourself first,
and then the good in others second.
Reply With Quote
  #327  
Old 2011-10-17, 17:36
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 22,496
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
In this case you dont need to import php anyway so I think its a non-issue.
Problem with arrays (imho) is for large paragraphs of text it gets quite messy to declare.

Also probably easier to swap a seperate text file stored on a server then it is to cut and paste the text into the array for each update.

You could, of course, load the array itself from other files - but I think thats rather overkill for a simple task like this.
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
  #328  
Old 2011-10-17, 17:55
J McKalling's Avatar
J McKalling J McKalling is offline
Magic Ball GrandMaster
 
Join Date: Aug 2009
Location: Dreamland
Posts: 2,721
If the translated texts consist of such a length that it becomes difficult to write in arrays, you could also use plain variables instead. It doesn't have to be arrays, a string is quite good enough. Using naming conventions, you'll be just as organized off as with arrays.

PHP Code:
<?php
$lang_intro_topParagraph 
"Very very ... very very long paragraph...";
?>
PHP Code:
<?php require("Text/English.html"?>
<h1>my example</h1>
<p><?php echo $lang_intro_topParagraph?></p>
<!-- more html -->
__________________
Quote:
Visit the Twinsuniverse to find everything about the LBA universe!

Threads: News, Introduction, Discussion, Bugs collection || Content: Characters, Enemies, Items
Words come in all sizes. But even if they fit you,
they might not come at appropriate times.

Good for everyone is finding yourself first,
and then the good in others second.
Reply With Quote
  #329  
Old 2011-10-17, 20:00
Jast's Avatar
Jast Jast is offline
Lemonhead
 
Join Date: Aug 2007
Location: Wandering hermit
Posts: 508
I think you've scared Frederick
__________________
Spoiler:
Quote:
Originally Posted by ras maxim View Post
The creatures arranged in a line and started to rape Twinsen in his anus, one by one.
Spoiler:
Quote:
Originally Posted by ras maxim View Post
P.S. Forgot to mention that Twinsen's remains were fed to dogs.
Spoiler:
Quote:
Originally Posted by ras maxim View Post
O.K., let's change the execution part. Maybe he was just beaten to death with clubs???
Reply With Quote
  #330  
Old 2011-10-17, 20:16
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 22,496
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
pff, they coded their own 3d engines from scratch - this would be childsplay :P
---

J McKalling - True, I'm just never keen on having strings over a few lines long
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
  #331  
Old 2011-10-17, 20:41
J McKalling's Avatar
J McKalling J McKalling is offline
Magic Ball GrandMaster
 
Join Date: Aug 2009
Location: Dreamland
Posts: 2,721
Quote:
Originally Posted by Darkflame View Post
pff, they coded their own 3d engines from scratch - this would be childsplay :P
---

J McKalling - True, I'm just never keen on having strings over a few lines long
Aye, with our combined efford in "teaching" him php, it should be no prob for Fred.
And, of cource, you can write multiline strings like this too:

PHP Code:
$lang_intro_topParagraph "Very very ... very very long paragraph..."
    
" With multiple"
    
" lines"
    
" so you can still read"
    
" everything on one screenwidth"
Linebreaks can also be inserted this way.
__________________
Quote:
Visit the Twinsuniverse to find everything about the LBA universe!

Threads: News, Introduction, Discussion, Bugs collection || Content: Characters, Enemies, Items
Words come in all sizes. But even if they fit you,
they might not come at appropriate times.

Good for everyone is finding yourself first,
and then the good in others second.
Reply With Quote
  #332  
Old 2011-10-17, 21:07
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 22,496
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
wait + ? I thought . was for joining in php. Didnt think you could use +
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
  #333  
Old 2011-10-17, 21:51
J McKalling's Avatar
J McKalling J McKalling is offline
Magic Ball GrandMaster
 
Join Date: Aug 2009
Location: Dreamland
Posts: 2,721
Oops, my bad, you're right. I've been too busy in Java right now
But whatever the syntax, you seem to know what I mean. At least it is possible to write multiple lines of string without repeating the variable name, or exceeding your screen to the right

*Edit:
In fact, this is how I produce my html 100%
__________________
Quote:
Visit the Twinsuniverse to find everything about the LBA universe!

Threads: News, Introduction, Discussion, Bugs collection || Content: Characters, Enemies, Items
Words come in all sizes. But even if they fit you,
they might not come at appropriate times.

Good for everyone is finding yourself first,
and then the good in others second.
Reply With Quote
  #334  
Old 2011-10-17, 22:50
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 22,496
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
Dont worry about it, I make +/. mistake all the time. My Rateoholic site is a pretty extream combination of Java and PHP, so when coding and fixing bits I frequently get my syntaxs mixed up between the two.
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
  #335  
Old 2011-10-18, 10:43
Zink's Avatar
Zink Zink is offline
Fruto di tutti frutti
 
Join Date: Sep 2001
Location: Lublin, Poland
Posts: 1,709
Also you should use single quotes to save parsing time if you're not using embedded variables or escaped constants.

PHP Code:
$var "some text"//needs more time to parse than
$var 'some text';
//especially for very long texts 
Reply With Quote
  #336  
Old 2011-10-19, 13:39
J McKalling's Avatar
J McKalling J McKalling is offline
Magic Ball GrandMaster
 
Join Date: Aug 2009
Location: Dreamland
Posts: 2,721
Quote:
Originally Posted by Zink View Post
Also you should use single quotes to save parsing time if you're not using embedded variables or escaped constants.

PHP Code:
$var "some text"//needs more time to parse than
$var 'some text';
//especially for very long texts 
That is seriously not my convention
Single quotes are used for string literals, doubles for normal strings. That's how Java does it, that's how I expect PHP to do it.
If it's long texts that are used, I'd normally also go for a database (which escapes the use of quotes).
__________________
Quote:
Visit the Twinsuniverse to find everything about the LBA universe!

Threads: News, Introduction, Discussion, Bugs collection || Content: Characters, Enemies, Items
Words come in all sizes. But even if they fit you,
they might not come at appropriate times.

Good for everyone is finding yourself first,
and then the good in others second.
Reply With Quote
  #337  
Old 2011-10-19, 15:01
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 22,496
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
" are magic quotes in php and do all sorts of funky stuff. To be honest I never thought of parseing time before, but it probably does take longer.
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
  #338  
Old 2011-10-19, 15:05
J McKalling's Avatar
J McKalling J McKalling is offline
Magic Ball GrandMaster
 
Join Date: Aug 2009
Location: Dreamland
Posts: 2,721
I'd love to hear from Fred about the subject now, now that after reading our PHP tips above, he probably has learned 50% too much of what he needs to lol
__________________
Quote:
Visit the Twinsuniverse to find everything about the LBA universe!

Threads: News, Introduction, Discussion, Bugs collection || Content: Characters, Enemies, Items
Words come in all sizes. But even if they fit you,
they might not come at appropriate times.

Good for everyone is finding yourself first,
and then the good in others second.
Reply With Quote
  #339  
Old 2011-10-19, 20:23
Dino-Fly's Avatar
Dino-Fly Dino-Fly is offline
Hello
 
Join Date: Jun 2007
Posts: 2,886
I quickly made a translation into Afrikaans(which I noticed in most cases looked just like the Dutch translation except for spelling changes of 'sch-' to 'sk-', 'ij' to 'y', and '-ties' to '-sies' as well as all the verb endings casually being dropped off ).

Anyway, I'm attaching it to this post because I'm not sure where else to put it.
Attached Files
File Type: txt bOxOn_text_ZA.txt‎ (2.2 KB, 108 views)
__________________
Spoiler:
Code:
#include "stdafx.h"
#include <iostream>
 
using namespace std;
 
int main()
{
  cout<<"Regards,\nDino-Fly\n";
 cin.get();
}
Reply With Quote
  #340  
Old 2011-10-19, 21:24
J McKalling's Avatar
J McKalling J McKalling is offline
Magic Ball GrandMaster
 
Join Date: Aug 2009
Location: Dreamland
Posts: 2,721
This is the place alright
But, Afrikaans does look like Dutch. In fact, it came from the slave language in the time of Holland's Golden Age, where they colonized Cape City in South Africa, and the Africans learned their own verson of Dutch to be able to understand what they were saying.
__________________
Quote:
Visit the Twinsuniverse to find everything about the LBA universe!

Threads: News, Introduction, Discussion, Bugs collection || Content: Characters, Enemies, Items
Words come in all sizes. But even if they fit you,
they might not come at appropriate times.

Good for everyone is finding yourself first,
and then the good in others second.
Reply With Quote
  #341  
Old 2011-10-19, 22:15
Dino-Fly's Avatar
Dino-Fly Dino-Fly is offline
Hello
 
Join Date: Jun 2007
Posts: 2,886
Quote:
Originally Posted by J McKalling View Post
This is the place alright
But, Afrikaans does look like Dutch. In fact, it came from the slave language in the time of Holland's Golden Age, where they colonized Cape City in South Africa, and the Africans learned their own verson of Dutch to be able to understand what they were saying.
Not quite as is reference to the fact that Afrikaans is predominantly spoken by whites with a very small population of blacks(I won't use the term African in this instance as it would be a little insulting to Afrikaners to say they're not inhabitants of Africa) who speak it as their mother tongue.

Afrikaans, which was known as Kitchen-Dutch back then, was spoken by the original Dutch settlers when the Dutch founded the Cape Colony. Of course, they originally spoke Dutch, but due to being cut off from the Dutch world(due to the colony being siezed by Britain which resulted in the Groot Trek and the founding of the Boer Republics), a lot of intermingling with Huguenot settlers fleeing France, as well as German(and a few other nationalities) settlers led to an influx of non-Dutch vocabulary(though most is still Dutch ).

However, you are right in saying that slaves did have an effect on the language, in the form of the Maylay slaves who worked there, which contibuted a few words to the Afrikaans language, such as 'baie' which in Dutch would be 'veel' or 'zeer', as well as 'piesang', which in Dutch would be 'banaan'. On a similar line Afrikaans was the lingo franca in Southern Africa between natives and the Boere for a long time(and is in fact for a large part still the lingo franca between Afrikaners and blacks today in South Africa, although English is quite rapidly becoming the language of choice in all aspects of life), which could have led to the massive simplifications of the grammar.


However, other than what I've already covered, the spelling becoming more phonic, vowel changes such as the 'ee' to be pronounced more like the 'ea' in 'ear' and not the 'ay' in 'day', Afrikaans has retained near mutual intelligibility with Dutch(in fact, if you study Afrikaans at university you actually study Dutch for the most part, and Dutch, not Afrikaans, was the official language of the Union of South Africa and not Afrikaans).


Sorry for this post long messhae. I have an interst in linguistics and history, and mixing that with the country I was raised in kinda sparks a fire under my bonnet.
__________________
Spoiler:
Code:
#include "stdafx.h"
#include <iostream>
 
using namespace std;
 
int main()
{
  cout<<"Regards,\nDino-Fly\n";
 cin.get();
}
Reply With Quote
  #342  
Old 2011-10-19, 22:26
J McKalling's Avatar
J McKalling J McKalling is offline
Magic Ball GrandMaster
 
Join Date: Aug 2009
Location: Dreamland
Posts: 2,721
That's ok with me I'm not so interested in it as you do, and this was as much as I knew about it. Thought it was accurate
__________________
Quote:
Visit the Twinsuniverse to find everything about the LBA universe!

Threads: News, Introduction, Discussion, Bugs collection || Content: Characters, Enemies, Items
Words come in all sizes. But even if they fit you,
they might not come at appropriate times.

Good for everyone is finding yourself first,
and then the good in others second.
Reply With Quote
  #343  
Old 2011-10-19, 22:26
Lupin's Avatar
Lupin Lupin is offline
Previously Link
 
Join Date: Dec 2001
Location: Strasbourg, France
Posts: 2,705
That was interesting to read
Reply With Quote
  #344  
Old 2011-10-23, 19:24
Renesans's Avatar
Renesans Renesans is offline
Magic Level: Fire Ball
 
Join Date: Apr 2007
Location: Kecskemét, Hungary
Posts: 494
Fred, you haven't posted for a while... I'm hoping you'll be back with a boom (iOS version)
Reply With Quote
  #345  
Old 2011-10-24, 12:38
Frederick's Avatar
Frederick Frederick is offline
Not really new
 
Join Date: Nov 2010
Location: France
Posts: 147
bOxOn iPad release

Hello guys,

Sorry for the delay, I was too much busy.
I followed your PHP class with interest. No, I'm not scared, yes, I know PHP, Javascript and SQL.
What I think I'll do: one txt file for each language like the one for the game texts. A quick parser/generator (in Blitzmax ) that will generate HTML translated files from the original one. The parser/generator is very easy to do, and then generated HTML pages will not take any processing time and are easy to regenerate. I'll take care of that soon.

Yes, one of the reasons I was busy is the release of the iPad full version. Lite version is following, and soon iPod/iPhone versions. Only French and English for now (need modified texts). I'm having troubles to submit the MAC version, working on it (Apple is not very helpful with my Invalid Binary error message...).

Thank you DinoFly, your translation in the next release (1.3.0) soon.

Fred.
Reply With Quote
  #346  
Old 2011-10-24, 13:25
Darkflame's Avatar
Darkflame Darkflame is offline
Classic
 
Join Date: Feb 2001
Location: Sol, Earth, NL
Posts: 22,496
Send a message via ICQ to Darkflame Send a message via AIM to Darkflame Send a message via MSN to Darkflame
Ah, we should have known you would come up with a better solution then either of our suggestions
__________________
http://fanficmaker.com <-- Tells some truly terrible tales.
-
Phones & Tricorders & Blobs & Bombs & 3D Printers & TVIntros also;stuff
Reply With Quote
  #347  
Old 2011-10-24, 14:40
Renesans's Avatar
Renesans Renesans is offline
Magic Level: Fire Ball
 
Join Date: Apr 2007
Location: Kecskemét, Hungary
Posts: 494
Quote:
Originally Posted by Frederick View Post
Hello guys,

Sorry for the delay, I was too much busy.
I followed your PHP class with interest. No, I'm not scared, yes, I know PHP, Javascript and SQL.
What I think I'll do: one txt file for each language like the one for the game texts. A quick parser/generator (in Blitzmax ) that will generate HTML translated files from the original one. The parser/generator is very easy to do, and then generated HTML pages will not take any processing time and are easy to regenerate. I'll take care of that soon.

Yes, one of the reasons I was busy is the release of the iPad full version. Lite version is following, and soon iPod/iPhone versions. Only French and English for now (need modified texts). I'm having troubles to submit the MAC version, working on it (Apple is not very helpful with my Invalid Binary error message...).

Thank you DinoFly, your translation in the next release (1.3.0) soon.

Fred.
Nice solution. Can you already tell us which lines need to be changed for the iPad version?
Reply With Quote
  #348  
Old 2011-10-25, 22:49
xesf's Avatar
xesf xesf is offline
Magic Ball Master
 
Join Date: Sep 2002
Location: Dublin
Posts: 7,757
The game is very addicting. The total number of levels is incredible. I'm still at beginning but we can feel the levels starting to be more challenging after accomplish some of them. So at the end, ufff...

I see a lot of potential on iPad and iPhone, specially because the multi-touch and can easily be a hit.
I only have an iPhone for now (iPad coming soon) but seams a great game to play on those machines.



@SpaceGuitarist, I made some changes on the Portuguese translation to be more accurate for both countries and PALOPs. Also fixed few typos. What do you think?!
Attached Files
File Type: txt bOxOn_text_PT.txt‎ (2.3 KB, 63 views)
__________________
LBA2Remake v0.4.0 released - open source re-implementation of the LBA 2 original engine for the web.
[Play on Browser]|[Changes]|[Github]


The Sacred Carrot website

Last edited by xesf; 2011-10-25 at 23:26.
Reply With Quote
  #349  
Old 2011-10-25, 23:09
J McKalling's Avatar
J McKalling J McKalling is offline
Magic Ball GrandMaster
 
Join Date: Aug 2009
Location: Dreamland
Posts: 2,721
Quote:
Originally Posted by alexfont View Post
The game is very addicted. ...
Lol
The game isn't addicted, you are
But you're right, it is addicting.
__________________
Quote:
Visit the Twinsuniverse to find everything about the LBA universe!

Threads: News, Introduction, Discussion, Bugs collection || Content: Characters, Enemies, Items
Words come in all sizes. But even if they fit you,
they might not come at appropriate times.

Good for everyone is finding yourself first,
and then the good in others second.
Reply With Quote
  #350  
Old 2011-10-25, 23:12
Renesans's Avatar
Renesans Renesans is offline
Magic Level: Fire Ball
 
Join Date: Apr 2007
Location: Kecskemét, Hungary
Posts: 494
What do you think of the pricing? Is $1.99 reasonable? I think it is, but I don't really know much about App Store prices.
Reply With Quote
Reply

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Countering the Wizard Puzzle Bug... Blues First aid 110 2016-08-29 17:12
Boxon?? Axx Off topic 22 2011-08-22 19:27
lba2 box puzzle... Drelnor First aid 8 2009-09-25 20:10
Dome of the Slate puzzle Unregistered First aid 4 2004-07-25 14:31
The warehouse puzzle morshem General 8 2003-08-20 10:30


All times are GMT +2. The time now is 16:26.


News Feed
Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright ©2000 - 2021, the Magicball Network