Categories
Game Creation Mastering Development

Class Not Found Exception on Class.forName()

I am having this exception on title. I have been following a LibGDX programming PDF, everything was working perfectly and then this code have been implemented, and it isnt working anymore. I should add that Rock and Starfish are classes on my project, and there is no typo on class names Caught message: java.lang.ClassNotFoundException: Rock […]

Categories
Mastering Development

Mismatched positional arguments error even though no mismatch [closed]

I have a clickable label that is supposed to pass parameters when clicked. However, when I click the label, I get: TypeError: configure_towns() takes 0 positional arguments but 1 was given Obviously this means that somewhere a call to configure_towns is being made that’s receiving an unexpected parameter, but nowhere in my code does this […]

Categories
Mastering Development

How to adjust the addPolylines function in shiny?

Could you help me adjust the addPolylines on the second map ?? In the first it worked correctly, however in the second it did not show the red lines connecting one point to the other. I couldn’t see what the error might be. I appreciate any help. I inserted an image below to illustrate. library(shiny) […]

Categories
Mastering Development

Having trouble creating multiple enemies for my pygame

I am a first time coding student in grade 11 and I am trying to create multiple instances of an enemy class in python for my game. Below is my pygame code. i am having trouble seeing what needs to be changed. Lines 180=183 are where I am trying to create 3 instances of my […]

Categories
Mastering Development

What is causing ‘Invalid address specified to RtlValidateHeap( 01480000, 014A2900 ) C-SDL-Blackjack.exe has triggered a breakpoint.’ in this project?

I am trying to mess around with a blackjack game on SDL, I have no idea why this is happening but when attempting to run it comes up with the message: HEAP[C-SDL-Blackjack.exe]: Invalid address specified to RtlValidateHeap( 01480000, 014A2900 ) C-SDL-Blackjack.exe has triggered a breakpoint. It appears to have something to do with : Player::~Player() […]

Categories
Mastering Development

Insert new functionalitys in shiny

Friends, could you please help me with some issue involving shiny. My executable code is working and I inserted below. In my code I am using a predefined database. However, I inserted a shiny fileInput to search for the file on the computer, but I would like to relate it to my shiny server, so […]

Categories
Mastering Development

Python – Calling a function from a different class to draw a line using PyQt Error: “‘sip.wrappertype'”

I am trying to create two classes using PyQt to create a gui like so; import sys from PyQt5.QtGui import QPainter, QPen, QBrush from PyQt5.QtWidgets import QWidget, QApplication from PyQt5.QtCore import Qt, QRect, QPoint class line(): def makeline(): qp.drawLine(250,250,350,300) test = line() class ShapeDrawer(QWidget): def __init__(self): super().__init__() self.setGeometry(50, 50, 500, 500) self.show() def paintEvent(self, event): […]

Categories
Mastering Development

Saving High Score and showing it on screen

I’ve finished my first game, and I’d like to add the high score to the ‘game over’ screen. I have a variable called ‘score’. This ‘score’ increases as you get further into the game. This ‘score’ also shows on screen while playing. If you die your final score shows up on the ‘game over’ screen. […]

Categories
Mastering Development

Create table via R (clusters)

I would like to make an output table for my problem via r (I would like to have something similar to the image below (attached), separating between clusters). #database df<-structure(list(Latitude = c(-23.8, -23.8, -23.9, -23.9, -23.9, -23.9, -23.9, -23.9, -23.9, -23.9, -23.9, -23.9, -23.9, -23.9, + -23.9, -23.9, -23.9, -23.9, -23.9), Longitude = c(-49.6, -49.6, […]

Categories
Linux Mastering Development Ubuntu

special character key comes with noname instead of letter on xev

KeyRelease event, serial 37, synthetic NO, window 0x2600001, root 0x269, subw 0x0, time 25839746, (517,242), root:(622,350), state 0x0, keycode 254 (keysym 0x11f, (no name)), same_screen YES, XLookupString gives 0 bytes: XFilterEvent returns: False KeyPress event, serial 37, synthetic NO, window 0x2600001, root 0x269, subw 0x0, time 25840405, (517,242), root:(622,350), state 0x0, keycode 255 (keysym 0x15f, […]