Romans
Romans
Explore posts from servers
SMSatisfactory Modding
Created by Romans on 10/29/2024 in #help-using-mods
Stack resizer settings not saving
Hello! the Stack Resizer mods doesn't work for me. I join the game go to the settings and set all to 1000, for example. Then i tried: - to save game, go to main menu and reload the save: it crashes the game and then reentering the world the settings was reset - to save game, go to desktop, reopen and re-enter world, it doesn't crash but settings were reset
69 replies
JCHJava Community | Help. Code. Learn.
Created by Romans on 10/24/2024 in #java-help
[Sping Boot/Mockito/Junit] Lombok Coverege testing
Hello! I'm doing Tests with Mockito, Spring Boot and Lombok. Someone knows how to test a simple class base with only attributes, that is marked with @Data?
@Data
public clòass MyCLass{
private final UUID id = UUID.randomUID();
private String name;
private String surname;
private List<Strings> groups;
}
@Data
public clòass MyCLass{
private final UUID id = UUID.randomUID();
private String name;
private String surname;
private List<Strings> groups;
}
- I've put all the setters and getters for all attributes (except id). - Ive set the toString(). - then created 3 instances and set for eachone a different name. - se the .equals from then (the first with itself), first with second, second with third, first with third. - the put for each instance the .hashCode(). - put the .canEqual as the equals. Running the coverage it still gives Line: 100% 9/9 Branch: 30% 16/52 And the @ Data is marked as "Partial" Someone have tips on how could i fill the Branch? (if i remove all the equals, can equal and hascode it goes 0/52) Thank you so much
4 replies
SMSatisfactory Modding
Created by Romans on 10/16/2024 in #help-using-mods
Installed Mods not saved
Hello! I haven't seen anything about this. Im in 1.0, yesterday i've created a "Modded" profile and started installing some mods. Today opening the SMM there are no installed mods. Where is the installed/downloaded mod folder? That's the second times it happens in 2 different computers Thank you
4 replies
JCHJava Community | Help. Code. Learn.
Created by Romans on 10/7/2024 in #java-help
Spring(Boot) Security preauthorize auth return 200 on "false" instead of 403
Hello! Hope this is the right section .I've a "problem" with spring boot and spring security. In controllers i've the classic @PreAuthorize("hasAnyAuthority(....)"). I would like to receive the error 403 (in order to redirect to the 403.ftlh in case of no authentication). Just now instead if i open the page that does not pass the @PreAuthorize, returns the page with status 200, but blank, for because any api in the controlled is executed (correctly). I tried to put in the security config an http.executionHandling() but it won't execute anyway. The basic requests i've is:
http.authorizeHttpRequest(authorize -> authorize.anymatchers("/img/","js/",etc).permitAll()
.anyMatchers("/","/logout","/error/**").permitAll()
.anyRequest.authenticated())
http.authorizeHttpRequest(authorize -> authorize.anymatchers("/img/","js/",etc).permitAll()
.anyMatchers("/","/logout","/error/**").permitAll()
.anyRequest.authenticated())
But still get 200 (and blank page) opening that page
10 replies
DIAdiscord.js - Imagine an app
Created by Romans on 9/21/2024 in #djs-voice
YTDL AudioPlayer.play gives error
Hello! Trying to replicate a pseudo music bot from links with YTDL The bot enters in channel, but then returns the error: Error: Cannot play a resource that has already ended. Code:
var connection = voice.joinVoiceChannel({
channelId: voiceChannel.id,
guildId: message.guild.id,
adapterCreator: message.guild.voiceAdapterCreator,
});

const ap = voice.createAudioPlayer();
const song = await ytdl.getBasicInfo(args[1])

const stream = ytdl(song.url, {filter: 'audioonly'});
const resource = await voice.createAudioResource(stream, { inlineVolume: true })
// console.log(stream, resource, song.url)
const subs = await connection.subscribe(ap)
ap.play(resource)
var connection = voice.joinVoiceChannel({
channelId: voiceChannel.id,
guildId: message.guild.id,
adapterCreator: message.guild.voiceAdapterCreator,
});

const ap = voice.createAudioPlayer();
const song = await ytdl.getBasicInfo(args[1])

const stream = ytdl(song.url, {filter: 'audioonly'});
const resource = await voice.createAudioResource(stream, { inlineVolume: true })
// console.log(stream, resource, song.url)
const subs = await connection.subscribe(ap)
ap.play(resource)
I've the GuildVoiceStates intent Then if i try without the ytdl.getbasic info, but directly with const song = args[1] // that is const args = message.content.split(" ");; i got a big long error: https://pastebin.com/VCLNcJ51
2 replies
JCHJava Community | Help. Code. Learn.
Created by Romans on 7/16/2024 in #java-help
Spring Boot @Mapping gives no read accessor error
Hello! I'm trying to use @mapping to map a DTo from entities My Main DTO is
public class MainDto {
private ProjectDTO project;
private TaskDTO task;
}
public class MainDto {
private ProjectDTO project;
private TaskDTO task;
}
DTOs:
public class ProjectDTO {
private UUID projectId;
private Second second;
private String name;
private String desc;
}
public class ProjectDTO {
private UUID projectId;
private Second second;
private String name;
private String desc;
}
public class SecondDTO {
private UUID secondId;
private String name;
private String desc;
}
public class SecondDTO {
private UUID secondId;
private String name;
private String desc;
}
public class TaskDTO {
private UUID taskId;
private String taskName;
}
public class TaskDTO {
private UUID taskId;
private String taskName;
}
Entities:
@Entity
public class ProjectEntity {
@Id
@Column(name = "project_id")
private UUID projectId;

@Column(name = "second_id")
private UUID secondId;

.... etc
}
@Entity
public class ProjectEntity {
@Id
@Column(name = "project_id")
private UUID projectId;

@Column(name = "second_id")
private UUID secondId;

.... etc
}
@Entity
public class SecondEntity {
@Id
@Column(name = "second_id")
private UUID secondId;

.... etc
}
@Entity
public class SecondEntity {
@Id
@Column(name = "second_id")
private UUID secondId;

.... etc
}
@Entity
public class TaskEntity {
...
}
@Entity
public class TaskEntity {
...
}
On an other file i set ans use the entities on repos, then i want to return the MainDTO:
public class main {
ProjectEntity projEntity = ...
SecondEntity sENtity = ...
TaskEntity tEntity = ...
....
}
public class main {
ProjectEntity projEntity = ...
SecondEntity sENtity = ...
TaskEntity tEntity = ...
....
}
then i got problems on mapping them: - If in main i've: MainDTO mDTO(ProjectEntity projEntity, SecondEntity sEntity, TaskEntity tEntity); it returns correctly filled the ProjectDTO and TaskDTO, except for the ProjectDTO Second, that is null. - If i try
@Mapping(target = "project.second", source = "sEntity")
MainDTO mDTO(ProjectEntity projEntity, SecondEntity sEntity, TaskEntity tEntity);
@Mapping(target = "project.second", source = "sEntity")
MainDTO mDTO(ProjectEntity projEntity, SecondEntity sEntity, TaskEntity tEntity);
works, it fill the Second, but the rest of projectDTO is empty (TaskDTO is filled). - If i try something like
@Mapping(target = "project", source = "projEntity")
@Mapping(target = "project.second", source = "sEntity")
MainDTO mDTO(ProjectEntity projEntity, SecondEntity sEntity, TaskEntity tEntity);
@Mapping(target = "project", source = "projEntity")
@Mapping(target = "project.second", source = "sEntity")
MainDTO mDTO(ProjectEntity projEntity, SecondEntity sEntity, TaskEntity tEntity);
or
@Mapping(target = "project.description", source = "projEntity")
@Mapping(target = "project.second", source = "sEntity")
MainDTO mDTO(ProjectEntity projEntity, SecondEntity sEntity, TaskEntity tEntity);
@Mapping(target = "project.description", source = "projEntity")
@Mapping(target = "project.second", source = "sEntity")
MainDTO mDTO(ProjectEntity projEntity, SecondEntity sEntity, TaskEntity tEntity);
it gives the error: java: no read accessor for property "project" in tagret type Someone has tips for this? THank you so much
8 replies
DHDistant Horizons
Created by Romans on 5/4/2024 in #bug-report
Strange "box" around some objects
No description
11 replies
DHDistant Horizons
Created by Romans on 5/1/2024 in #help-me
Error, not updated dh/iris
Hello i got this error without updating. Fabric api 1.92.0, dh 2.0.2. Fabric 1.20.1:
Time: 2024-05-01 22:48:13
Description: Initializing game

java.lang.RuntimeException: DH 2.0 not found, yet Fabric claims it's there. Curious.
at net.irisshaders.iris.compat.dh.DHCompat.run(DHCompat.java:82)
at net.irisshaders.iris.Iris.onEarlyInitialize(Iris.java:718)
at net.minecraft.class_315.handler$dhb000$iris$beforeLoadOptions(class_315.java:1799)
at net.minecraft.class_315.method_1636(class_315.java)
at net.minecraft.class_315.<init>(class_315.java:1237)
at net.minecraft.class_310.<init>(class_310.java:460)
at net.minecraft.client.main.Main.main(Main.java:211)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:243)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:278)
at org.multimc.EntryPoint.listen(EntryPoint.java:143)
at org.multimc.EntryPoint.main(EntryPoint.java:34)
Caused by: java.lang.NoClassDefFoundError: com/seibel/distanthorizons/api/methods/events/abstractEvents/DhApiColorDepthTextureCreatedEvent
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.defineClassFwd(KnotClassLoader.java:160)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:355)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218)
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at net.irisshaders.iris.compat.dh.LodRendererEvents.setupCreateDepthTextureEvent(LodRendererEvents.java:111)
at net.irisshaders.iris.compat.dh.LodRendererEvents$1.afterDistantHorizonsInit(LodRendererEvents.java:56)
at com.seibel.distanthorizons.api.methods.events.abstractEvents.DhApiAfterDhInitEvent.fireEvent(DhApiAfterDhInitEvent.java:44)
at com.seibel.distanthorizons.coreapi.DependencyInjection.ApiEventInjector.bind(ApiEventInjector.java:66)
at com.seibel.distanthorizons.coreapi.DependencyInjection.ApiEventInjector.bind(ApiEventInjector.java:36)
at net.irisshaders.iris.compat.dh.LodRendererEvents.setupEventHandlers(LodRendererEvents.java:68)
at net.irisshaders.iris.compat.dh.DHCompat.run(DHCompat.java:71)
... 17 more
Caused by: java.lang.ClassNotFoundException: com.seibel.distanthorizons.api.methods.events.abstractEvents.DhApiColorDepthTextureCreatedEvent
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:226)
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 32 more
Time: 2024-05-01 22:48:13
Description: Initializing game

java.lang.RuntimeException: DH 2.0 not found, yet Fabric claims it's there. Curious.
at net.irisshaders.iris.compat.dh.DHCompat.run(DHCompat.java:82)
at net.irisshaders.iris.Iris.onEarlyInitialize(Iris.java:718)
at net.minecraft.class_315.handler$dhb000$iris$beforeLoadOptions(class_315.java:1799)
at net.minecraft.class_315.method_1636(class_315.java)
at net.minecraft.class_315.<init>(class_315.java:1237)
at net.minecraft.class_310.<init>(class_310.java:460)
at net.minecraft.client.main.Main.main(Main.java:211)
at net.fabricmc.loader.impl.game.minecraft.MinecraftGameProvider.launch(MinecraftGameProvider.java:470)
at net.fabricmc.loader.impl.launch.knot.Knot.launch(Knot.java:74)
at net.fabricmc.loader.impl.launch.knot.KnotClient.main(KnotClient.java:23)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:243)
at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:278)
at org.multimc.EntryPoint.listen(EntryPoint.java:143)
at org.multimc.EntryPoint.main(EntryPoint.java:34)
Caused by: java.lang.NoClassDefFoundError: com/seibel/distanthorizons/api/methods/events/abstractEvents/DhApiColorDepthTextureCreatedEvent
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1012)
at java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:150)
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.defineClassFwd(KnotClassLoader.java:160)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.tryLoadClass(KnotClassDelegate.java:355)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:218)
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at net.irisshaders.iris.compat.dh.LodRendererEvents.setupCreateDepthTextureEvent(LodRendererEvents.java:111)
at net.irisshaders.iris.compat.dh.LodRendererEvents$1.afterDistantHorizonsInit(LodRendererEvents.java:56)
at com.seibel.distanthorizons.api.methods.events.abstractEvents.DhApiAfterDhInitEvent.fireEvent(DhApiAfterDhInitEvent.java:44)
at com.seibel.distanthorizons.coreapi.DependencyInjection.ApiEventInjector.bind(ApiEventInjector.java:66)
at com.seibel.distanthorizons.coreapi.DependencyInjection.ApiEventInjector.bind(ApiEventInjector.java:36)
at net.irisshaders.iris.compat.dh.LodRendererEvents.setupEventHandlers(LodRendererEvents.java:68)
at net.irisshaders.iris.compat.dh.DHCompat.run(DHCompat.java:71)
... 17 more
Caused by: java.lang.ClassNotFoundException: com.seibel.distanthorizons.api.methods.events.abstractEvents.DhApiColorDepthTextureCreatedEvent
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:641)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
at net.fabricmc.loader.impl.launch.knot.KnotClassDelegate.loadClass(KnotClassDelegate.java:226)
at net.fabricmc.loader.impl.launch.knot.KnotClassLoader.loadClass(KnotClassLoader.java:119)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:520)
... 32 more
7 replies
TIPThe Iris Project
Created by Romans on 3/15/2024 in #iris-issues
DH Compatibility works only on SP?
Hello! i've tried the DH compatibility with all relative mods on SP and they worked fine. But on server it gives errore on loading DH. I cannot find anywhere problems server side
8 replies