Help with Core Mods

I’m getting this error on my site all of a sudden and have no idea how to fix it.

Warning: Use of undefined constant core_mods – assumed ‘core_mods’ (this will throw an Error in a future version of PHP) in /nfs/c10/h07/mnt/144394/domains/nationsfg.com/html/wp/wp-content/themes/nationsfg/functions.php on line 50

How do I fix ‘Could not determine java version from ‘14.0.2’.’ when trying to make Minecraft mods?

I try to build my mod like this.

I get the error:

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine java version from ‘14.0.2’.

What causes this? How do I fix this? I never used Gradle or Java before so please be specific. Is this caused because Gradle doesn’t support Java 14.0.2? If so, how do I tell Gradle to use a Java version it does support? I’m a noob. I have no experience with Gradle at all, I don’t even know what it is or what it’s for, all I know is I’m trying to make a basic Minecraft mod. However I do know Java.

How to identify performance issues with large numbers of mods?

My current problem is with RimWorld, but in the past I had the same issue with Minecraft. Basically the game gets more fun with more mods, up until the point where performance becomes unmanageable. Most mods are open source and I am confident that I could fix many of these performance issues if I could only identify where the hotspots are.

So as a modder, how can I figure out where I should try and help out?

-200+ mods, though obviously I would add more if I could.
-I don’t have access to the core game source code.
-I don’t have access to a debug version of the core game.
-I probably have source code access to a given mod.
-I’m looking for ways to help the community, not ways to make the game faster for just me (like adding more memory).

mod_deflate and other mods aren’t working on apache + centos

I don’t have much experience in server administration. Following tutorials and blogs out there I’m trying to add some lines in my .htaccess file on the site to enable GZIP compression and Leverage browser cache.

The lines are

<IfModule mod_deflate.c>   # Compress HTML, CSS, JavaScript, Text, XML and fonts   AddOutputFilterByType DEFLATE application/javascript   AddOutputFilterByType DEFLATE application/rss+xml   AddOutputFilterByType DEFLATE application/vnd.ms-fontobject   AddOutputFilterByType DEFLATE application/x-font   AddOutputFilterByType DEFLATE application/x-font-opentype   AddOutputFilterByType DEFLATE application/x-font-otf   AddOutputFilterByType DEFLATE application/x-font-truetype   AddOutputFilterByType DEFLATE application/x-font-ttf   AddOutputFilterByType DEFLATE application/x-javascript   AddOutputFilterByType DEFLATE application/xhtml+xml   AddOutputFilterByType DEFLATE application/xml   AddOutputFilterByType DEFLATE font/opentype   AddOutputFilterByType DEFLATE font/otf   AddOutputFilterByType DEFLATE font/ttf   AddOutputFilterByType DEFLATE image/svg+xml   AddOutputFilterByType DEFLATE image/x-icon   AddOutputFilterByType DEFLATE text/css   AddOutputFilterByType DEFLATE text/html   AddOutputFilterByType DEFLATE text/javascript   AddOutputFilterByType DEFLATE text/plain   AddOutputFilterByType DEFLATE text/xml    # Remove browser bugs (only needed for really old browsers)   BrowserMatch ^Mozilla/4 gzip-only-text/html   BrowserMatch ^Mozilla/4\.0[678] no-gzip   BrowserMatch \bMSIE !no-gzip !gzip-only-text/html   Header append Vary User-Agent </IfModule> <IfModule mod_gzip.c>   mod_gzip_on Yes   mod_gzip_dechunk Yes   mod_gzip_item_include file .(html?|txt|css|js|php|pl)$     mod_gzip_item_include handler ^cgi-script$     mod_gzip_item_include mime ^text/.*   mod_gzip_item_include mime ^application/x-javascript.*   mod_gzip_item_exclude mime ^image/.*   mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.* </IfModule>  # Leverage Browser Caching <IfModule mod_expires.c>   ExpiresActive On   ExpiresByType image/jpg "access 1 year"   ExpiresByType image/jpeg "access 1 year"   ExpiresByType image/gif "access 1 year"   ExpiresByType image/png "access 1 year"   ExpiresByType text/css "access 1 month"   ExpiresByType text/html "access 1 month"   ExpiresByType application/pdf "access 1 month"   ExpiresByType text/x-javascript "access 1 month"   ExpiresByType application/x-shockwave-flash "access 1 month"   ExpiresByType image/x-icon "access 1 year"   ExpiresDefault "access 1 month" </IfModule> <IfModule mod_headers.c>   <filesmatch "\.(ico|flv|jpg|jpeg|png|gif|css|swf)$  ">   Header set Cache-Control "max-age=2678400, public"   </filesmatch>   <filesmatch "\.(html|htm)$  ">   Header set Cache-Control "max-age=7200, private, must-revalidate"   </filesmatch>   <filesmatch "\.(pdf)$  ">   Header set Cache-Control "max-age=86400, public"   </filesmatch>   <filesmatch "\.(js)$  ">   Header set Cache-Control "max-age=2678400, private"   </filesmatch> </IfModule>  # LBROWSERCSTART Browser Caching <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/gif "access 1 year" ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType image/x-icon "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType text/javascript "access 1 month" ExpiresByType text/html "access 1 month" ExpiresByType application/javascript "access 1 month" ExpiresByType application/x-javascript "access 1 month" ExpiresByType application/xhtml-xml "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresDefault "access 1 month" </IfModule> # END Caching LBROWSERCEND 

This should work and the content should be compressed, etc but is not. I keep getting warnings about it.

When I run following command to check if mod_deflate is installed, the result is that it is installed.

# apachectl -t -D DUMP_MODULES | grep deflate   deflate_module (shared) 

I can see also the mod_deflate.so in /etc/httpd/modules/mod_deflate.so

If it is matter here is the version of the apache

# httpd -v Server version: Apache/2.4.6 (CentOS) 

Anyone wiling to point me why doesn’t work and how can I get it work?