FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    My own Mod can't be uploaded? What to do?

    Scheduled Pinned Locked Moved I need help
    4 Posts 3 Posters 328 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      killerfrog2222
      last edited by

      Hey there!

      I started to create mods for FA, for now just simple editing of the unit.bp file....but when i try to upload it, for playing with my friends, i recieve this error message:

      com.faforever.commons.api.dto.ApiException: The mod version has to be a whole number like 123, but was 'nil'
      at com.faforever.client.api.JsonApiErrorHandler.handleError(JsonApiErrorHandler.java:28)
      at org.springframework.security.oauth2.client.http.OAuth2ErrorHandler.handleError(OAuth2ErrorHandler.java:177)
      at org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63)
      at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:818)
      at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:776)
      at org.springframework.security.oauth2.client.OAuth2RestTemplate.doExecute(OAuth2RestTemplate.java:132)
      at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:710)
      at org.springframework.web.client.RestTemplate.postForEntity(RestTemplate.java:467)
      at com.faforever.client.api.FafApiAccessorImpl.post(FafApiAccessorImpl.java:663)
      at com.faforever.client.api.FafApiAccessorImpl.uploadMod(FafApiAccessorImpl.java:310)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
      at com.sun.proxy.$Proxy74.uploadMod(Unknown Source)
      at com.faforever.client.remote.FafService.uploadMod(FafService.java:315)
      at com.faforever.client.remote.FafService$$FastClassBySpringCGLIB$$6c91c77e.invoke(<generated>)
      at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
      at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:687)
      at com.faforever.client.remote.FafService$$EnhancerBySpringCGLIB$$a886fd1f.uploadMod(<generated>)
      at com.faforever.client.mod.ModUploadTask.call(ModUploadTask.java:75)
      at com.faforever.client.mod.ModUploadTask.call(ModUploadTask.java:26)
      at javafx.concurrent.Task$TaskCallable.call(Task.java:1425)
      at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
      at java.base/java.lang.Thread.run(Thread.java:832)

      anyone knows Where to adjust the parameter to get it running?

      Thanks for your help!

      Nils

      1 Reply Last reply Reply Quote 0
      • R Offline
        Raquaza
        last edited by

        you should have a mod_info.lua file with the mod's informations, the error message tells you there is no "version" attribute.

        check this post for the correct way to make the info file https://forum.faforever.com/topic/739/guide-creating-a-basic-balance-mod-with-a-merge-blueprint

        1 Reply Last reply Reply Quote 0
        • UvesoU Offline
          Uveso
          last edited by Uveso

          @killerfrog2222

          you could also upload your mod as zip and we can take a look/fix it.

          1 Reply Last reply Reply Quote 0
          • K Offline
            killerfrog2222
            last edited by

            Hey you both,
            '
            Thanks for your help...I copied the code out of the Tutorial and changed it in my way and that seems to work...absolutely no idea why it didnt work with my version at first...

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post