DigiArt-project / wordpressunity3deditor

wpUnity: transform your WordPress site into a 3D experiences authoring tool
Apache License 2.0
10 stars 0 forks source link

User-friendly way of making assets #259

Open jimver04 opened 6 years ago

jimver04 commented 6 years ago

There should be a ribbon below the 3D viewer that ones selects one asset from the predefined ones. Downloading a zip folder is not a good solution because the users get lost. We should finally remove it. Also it causes legal issues with the 3D models in it. Uploading should remain however for several reasons.

tpapaz commented 6 years ago

Pull!

jimver04 commented 6 years ago

I found this piece of code that can be used to monitor which hooks are executed. I will test it and let you know ....

$debug_tags = array();
add_action( 'all', function ( $tag ) {
    global $debug_tags;
    if ( in_array( $tag, $debug_tags ) ) {
        return;
    }
    echo "<pre>" . $tag . "</pre>";
    $debug_tags[] = $tag;
} );
jimver04 commented 6 years ago

Stathi I have fixed the connection of the joker games with the actual games. You had denoted your own slug "joker-arch" whereas the tax of the assets took the automatic one ("archaelogy-joker"). I fixed them in order to be the same. Now the assets of the joker games appear as assets in the normal games. Make a pull.

However, there are a lot of WARNINGS if you activate wordpress "Debug" mode. (define('WP_DEBUG', true);). I do not know if it they are old or new but they have to be fixed because they are miss-leading when I try to solve ERRORS.

For example the most annoying the undefined $tt_id variable :

Notice: Undefined variable: tt_id in C:\xampp\htdocs\digiart-project_Jan17\wp-content\plugins\wordpressunity3deditor\includes\default_game_project_settings\wpunity-default-energy-settings.php on line 152

Notice: Undefined variable: tt_id in C:\xampp\htdocs\digiart-project_Jan17\wp-content\plugins\wordpressunity3deditor\includes\default_game_project_settings\wpunity-default-archaeology-settings.php on line 164

Notice: Undefined variable: tt_id in C:\xampp\htdocs\digiart-project_Jan17\wp-content\plugins\wordpressunity3deditor\includes\default_game_project_settings\wpunity-default-chemistry-settings.php on line 165

Notice: Undefined variable: post in C:\xampp\htdocs\digiart-project_Jan17\wp-content\plugins\wordpressunity3deditor\includes\wpunity-types-assets-data.php on line 46

Notice: Trying to get property of non-object in C:\xampp\htdocs\digiart-project_Jan17\wp-content\plugins\wordpressunity3deditor\includes\wpunity-types-assets-data.php on line 46

Notice: Undefined variable: post in C:\xampp\htdocs\digiart-project_Jan17\wp-content\plugins\wordpressunity3deditor\includes\wpunity-types-assets-data.php on line 47

Notice: Trying to get property of non-object in C:\xampp\htdocs\digiart-project_Jan17\wp-content\plugins\wordpressunity3deditor\includes\wpunity-types-assets-data.php on line 47