JeffSkyrunner's Recent Forum Activity

  • Any idea somebody?

    The "final" version of my .htaccess, after tons of tests, is now:

    # DO NOT REMOVE THIS LINE AND THE LINES BELOW HOTLINKID://www.google.com

    RewriteEngine on

    RewriteCond %{HTTP_REFERER} !^http://testacc.netne.net/.*$ [NC]

    RewriteCond %{HTTP_REFERER} !^http://testacc.netne.net$ [NC]

    RewriteCond %{HTTP_REFERER} !^http://www.testacc.netne.net/.*$ [NC]

    RewriteCond %{HTTP_REFERER} !^http://www.testacc.netne.net$ [NC]

    RewriteRule .*\.(zip|rar|exe|mp3|pdf|swf|psd)$ http://http [R,NC]

    # DO NOT REMOVE THIS LINE AND THE LINES ABOVE //www.google.com:HOTLINKID

    # Do not remove this line, otherwise mod_rewrite rules will stop working

    RewriteEngine On

    RewriteBase /XWing/

    <FilesMatch ".(json|css|scml|woff|webapp|appcache)">

    Header set Access-Control-Allow-Origin "*"

    </FilesMatch>

    AddType text/plain .txt

    AddType text/html .html .htm

    AddType text/css .css

    AddType text/xml .scml .xml

    AddType text/csv .csv

    AddType text/cache-manifest .appcache

    AddType image/svg+xml .sgv

    AddType image/png .png

    AddType image/jpeg .jpeg .jpg .jpe .JPG

    AddType audio/ogg .ogg .opus

    AddType audio/mp4 .m4a

    AddType video/webm .webm

    AddType video/ogv .ogv

    AddType application/font-woff .woff

    AddType application/json .scon .json

    AddType application/x-web-app-manifest+json .webapp

    AddType application/manifest+json .manifest

    AddType application/pdf .pdf

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • As promised, this week I dedicated in cleaning up the code and completing the full turn cycle (planning, activation, combat).... and I've managed also to make ship explode! (yay!)

    It's always nice to see a Tie Fighter explode!

    The alpha is almost ready, but I have still to solve the problem mentioned here, so if somebody has any idea, it would be greatly appreciated.

    Next step: manage the end of the game and create some sort of initial menu...

  • I am not referencing nothing at all... maybe it can be the json files I load? But they are local files... or, at least, they should be... :look:

    Edit: This is how I make the call:

  • BTW, here is the URL: http://testacc.netne.net/XWing/

    Maybe somebody more xpert than me can help, looking at the console

  • Nope, I've tried editing my .httaccess file, but still nothing new.

    This is my file:

    --

    # Do not remove this line, otherwise mod_rewrite rules will stop working

    RewriteBase /

    AddType text/plain .txt

    AddType text/html .html .htm

    AddType text/css .css

    AddType text/xml .scml .xml

    AddType text/csv .csv

    AddType text/cache-manifest .appcache

    AddType image/svg+xml .sgv

    AddType image/png .png

    AddType image/jpeg .jpeg .jpg .jpe .JPG

    AddType audio/ogg .ogg .opus

    AddType audio/mp4 .m4a

    AddType video/webm .webm

    AddType video/ogv .ogv

    AddType application/font-woff .woff

    AddType application/json .scon .json

    AddType application/x-web-app-manifest+json .webapp

    AddType application/manifest+json .manifest

    AddType application/pdf .pdf

    AddType application/zip .zip

    AddType application/javascript .js

    --

    Edit:

    The console says the error is Cross-Origin Request Blocked, so I changed my .httaccess in this way:

    ---

    # Do not remove this line, otherwise mod_rewrite rules will stop working

    RewriteBase /

    <FilesMatch "\.(php)$">

    <IfModule mod_headers.c>

    Header set Access-Control-Allow-Origin "*"

    </IfModule>

    </FilesMatch>

    AddType text/plain .txt

    AddType text/html .html .htm

    AddType text/css .css

    AddType text/xml .scml .xml

    AddType text/csv .csv

    AddType text/cache-manifest .appcache

    AddType image/svg+xml .sgv

    AddType image/png .png

    AddType image/jpeg .jpeg .jpg .jpe .JPG

    AddType audio/ogg .ogg .opus

    AddType audio/mp4 .m4a

    AddType video/webm .webm

    AddType video/ogv .ogv

    AddType application/font-woff .woff

    AddType application/json .scon .json

    AddType application/x-web-app-manifest+json .webapp

    AddType application/manifest+json .manifest

    AddType application/pdf .pdf

    AddType application/zip .zip

    AddType application/javascript .js

    --

    but still I cannot make it work.

    Is there anybody who can teach me on how have I to write a correct .htaccess file?

  • Could you please point me in the right direction? What have I to check? ^^;

    Edit: Maybe I've found something... I am working on it, I'll let you know

  • I am sure it's my error somewhere, but...

    I have tried to host my game on a website, and I have this situation just after loaded:

    While it should be like this:

    What am I missing?

    It seems it doesn't start with the functions...

    Many thanks in advance

  • PM Sent

  • This week I've made ships firing each other, using the standard tutorial range rules.

    In the next week I will clean up the code, fix some minor issues and make a full cycle of phases (planning - activation - combat - next turn).

    This should be the last step before a full match could be played.

  • Kyatric

    Sorry, I thought that being the same problem it would be better to use the same thread: my bad.

    Btw, thank you very much: you point me in the right direction! The error in the delay was that I was using local variable (iTargetX) instead of global ones (the target is always the same, so no need for an array).

    iNumLaser is correct: the "error" was just that being spawn all together, the sprites were all overlapping.

    Many thanks and sorry again for the error of using the same thread.

  • Or you can test in LAN mode

  • Any idea somebody?

JeffSkyrunner's avatar

JeffSkyrunner

Member since 20 Nov, 2012

Twitter
JeffSkyrunner has 1 followers

Connect with JeffSkyrunner

Trophy Case

  • 12-Year Club
  • x7
    Coach One of your tutorials has over 1,000 readers
  • x4
    Educator One of your tutorials has over 10,000 readers
  • Teacher One of your tutorials has over 100,000 readers
  • Email Verified

Progress

16/44
How to earn trophies