[indev] Minetest Extensions - mod review [Remaking in python

User avatar
Likwid H-Craft
Member
 
Posts: 1113
Joined: Sun Jan 06, 2013 14:20

by Likwid H-Craft » Mon Mar 04, 2013 14:11

rubenwardy wrote:
Likwid H-Craft wrote:Hey Ruben what, site engine do you use? since I like to make a Minetest Mission Website like, how yours site like, but have, other theme etc.


Minetest Extensions is written completely in code by me.
Oh then is it, possble you can make me one for the mission? or should we wait for 0.4.5?
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Sun Mar 10, 2013 11:17

Hello ruben,
I'd like to make MinetestRemote (indev) compatible to your Modforum.
The users of MinetestRemote should be able to see some quick information about the installed mods (short description and version). How can I (we) do this?
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sun Mar 10, 2013 16:45

You would need to make the php grab a page from my site, specifically one of the api pages.

https://github.com/rubenwardy/minetest-forum/wiki/The-APIs

If you want another format, give details
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Sun Mar 10, 2013 16:52

rubenwardy wrote:You would need to make the php grab a page from my site, specifically one of the api pages.

https://github.com/rubenwardy/minetest-forum/wiki/The-APIs

If you want another format, give details

Ok, I'll try them out. file_get_contents() should work for this :)

Btw, your link is dead: Correct one https://github.com/rubenwardy/minetest-extensions/wiki/The-APIs...
Can you do an output like in http://multa.bugs3.com/minetest/forum/api/python/getmodbyname.php?id=mesecons, but with "modname", "version" and this short description from the sidebar?
Last edited by webdesigner97 on Sun Mar 10, 2013 16:56, edited 1 time in total.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sun Mar 10, 2013 16:54

 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Sun Mar 10, 2013 17:02

Can you do an output like in http://multa.bugs3.com/minetest/forum/api/python/getmodbyname.php?id=mesecons, but with "modname", "version" and this short description from the sidebar?
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sun Mar 10, 2013 17:19

 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Sun Mar 10, 2013 18:35


Thank you! Your project forum is just awesome! I'll start using your API in the next days (Weekend is over -> School) ;)
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Mon Mar 11, 2013 16:23

I don't want to go offtopic. but I need your advice. My code for running through your API for all installed mods on a server is very slow and fails with the following error:
Notice: Undefined offset: 3 in C:\xampp\htdocs\mtrem\libs\functions.php on line 66


I know what the error means, but I don't know how this can be... I call your API for every single mod and read out the text it returns. This text is written into an array. The input of the function is an array with the names of the installed mods.
The code:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
//Catch Mod Info from Rubenwardy's mod forum
    function getModInfo($mods)    {
        $output    = array();
        foreach($mods as $current)    {
            $src    = file("http://multa.bugs3.com/minetest/forum/api/table-long/getmodbyname.php?id=$current");
            $output[$current]["name"]    = $current;
            $output[$current]["version"]= str_replace("Version:","",$src[3]);
            $output[$current]["desc"]    = str_replace("Overview:","",$src[4]);
        }
        return $output;
    }


Any idea how to make it work?
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Mon Mar 11, 2013 16:45

Sorry, I missed changing a bit in the script, so it returned

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Name:
Depends:
File:
Version:


when the mod was not found instead of


Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Name:
Depends:
File:
Version:
Overview:


Which caused an error.
Last edited by rubenwardy on Mon Mar 11, 2013 16:49, edited 1 time in total.
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Mon Mar 11, 2013 17:07

rubenwardy wrote:Sorry, I missed changing a bit in the script, so it returned

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Name:
Depends:
File:
Version:


when the mod was not found instead of


Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
Name:
Depends:
File:
Version:
Overview:


Which caused an error.

Cool, thx. I hope to make it work now :)
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Mon Mar 11, 2013 17:22

Hey ruben, I finally found out, why my script threw "undefined index" errors:

ruben's forum wrote:Warning: mysql_pconnect() [function.mysql-pconnect]: Link to server lost, unable to reconnect in /home/u372522788/public_html/minetest/forum/scripts/setup.php on line 44
 

User avatar
webdesigner97
Member
 
Posts: 1307
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97

by webdesigner97 » Tue Mar 12, 2013 18:35

ok, here's the draft for my API:

mtRem calls your API: "http://blablabla/api/mtremapi.php?names=mesecons,streets,carts"
You need to split the mods and make an array out of them, then the output will be:

Name:mesecons|
Version:123|
Overview:Lorem Ipsum dolor sit amet|
###
Name:streets|
Version:456|
Overview:The quick brown fox|
###
Name:carts|
Version:789|
Overview:Minetest vs Minecraft|


The number of mods in param "names" will be variable, so sometimes there could be 1 mod or 30 mods. But with this kind of API, I just need 1 http-request :)

Edit: Oh, and pls tell me after you finished my API :)
Last edited by webdesigner97 on Thu Mar 14, 2013 09:39, edited 1 time in total.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sun Mar 24, 2013 12:57

[h]0.8 released[/h]

To do

  • testing
  • better like button image
  • add review adder

[h]Testers needed[/h]

Before Minetest Extensions can be released to the main site, it needs to be tested extensively.

I need people to be

  • intuitiveness and user interface testers (ie: adding a mod, and maintaining it, liking it)
  • ethical hackers (look for security holes)
  • general testers of Mt Extensions (look for bugs)
  • general opinion givers.

thank you in advance to all participants.

PS: getting an error like
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
mysql_pconnect() [function.mysql-pconnect]: Can't connect to MySQL server
?
dont worry, it is just my server acting up because I have so many visitors. It is not a mt extensions error.
Last edited by rubenwardy on Sun Mar 24, 2013 14:59, edited 1 time in total.
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Sun Mar 24, 2013 12:58

Ill test option one.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Wed Apr 03, 2013 17:41

* bump *
 

User avatar
Likwid H-Craft
Member
 
Posts: 1113
Joined: Sun Jan 06, 2013 14:20

by Likwid H-Craft » Wed Apr 03, 2013 17:55

I help :)

My Report of testing:
/!\ Be edit when add something /!\

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
The logo is missing.
Tell us took me to null page.
Last edited by Likwid H-Craft on Wed Apr 03, 2013 18:03, edited 1 time in total.
My Domain's/others:
http://likwidtest.hj.cx/ (Not Done)
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Thu May 09, 2013 09:54

Minetest Extensions is back up after a night of technical changes.

It will be taken down when the python version is added to minetest.net and released
 

Previous

Return to Minetest-Related

Who is online

Users browsing this forum: No registered users and 3 guests

cron